Is it possible to do automatic url mapping in Spring MVC?

Is it possible to make automatic URL mapping in Spring MVC? For example, the url http://localhost/eshop/products calls the ProductController in the eshop module without an explicit @RequestMapping. The system should know that the first parameter is a module, and the second parameter is a controller. I do not want to make any changes to web.xml or to @RequestMapping every time I create a new controller.

+4
source share
1 answer

Please check this link http://static.springsource.org/spring/docs/3.0.0.M3/reference/html/ch16s10.html

Configuration Alignment with Spring MVC

+3
source

Source: https://habr.com/ru/post/1446417/


All Articles