


@GetMapping("/user")public String user(ModelMap map){map.addAttribute("name","zhang");return "user";}
<body><h1 th:text="'welcome:'+${name}"></h1></body>



@RequestMapping(value = {"/user","/user2"},method = RequestMethod.GET)public String user(){return "user";}

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号