淘先锋技术网

首页 1 2 3 4 5 6 7

springmvc传值到html页面?

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";

mvc css 控制,springmvc传值到html页面