Controller中:
@Controller
@RequestMapping(value=””)
public class IndexController {
@RequestMapping(value = “/trackStationInfo/{trackId}”)
public String getTrackStation(Model model, @PathVariable String trackId){
model.addAttribute(“trackId”,trackId);
return “trackStationInfo”;