How to optimize my code in Spring MVC Controller using @RequestMapping?

后端 未结 3 681
生来不讨喜
生来不讨喜 2020-12-30 16:57

In my controller,My controller method names are equals to the requestmapping url.For example,/list is equal to method name list. Is there has a com

3条回答
  •  佛祖请我去吃肉
    2020-12-30 17:50

    You can extend to AbstractControllerUrlHandlerMapping and override the method and add bean in web.xml.

      
      
          
              
          
      
      
      
      
      
    

    Here is an example.

提交回复
热议问题