The last time a GET request parameters with automatic decimal point interception with Spring Annotations @PathVariable would point behind character Solutions

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_35619095/article/details/90231878

1. url parameter applies only to the final surface

     Such as:

           @RequestMapping("/addTeacher/{groupId}")
           public String addTeacher(HttpServletRequest request, ModelMap modelMap,@PathVariable String groupId){

      Read:

            @RequestMapping("/addTeacher/{groupId:.+}")
            public String addTeacher(HttpServletRequest request, ModelMap modelMap,@PathVariable String groupId){

 

Guess you like

Origin blog.csdn.net/qq_35619095/article/details/90231878