开发者

Spring MVC - How to map individual methods in a controller without anotation use

开发者 https://www.devze.com 2023-01-13 01:42 出处:网络
I am very new to Spring framework in general. How开发者_如何学Go can I map individual methods in a controller, so that I can call any other method other than handleRequestInternal for example.

I am very new to Spring framework in general. How开发者_如何学Go can I map individual methods in a controller, so that I can call any other method other than handleRequestInternal for example. Also I do not want to use annotation (@RequestMapping).

Thank you manu


If you use an interface based Controller than use manual dispatching to your methods, otherwise you have to use annotations I believe.


You want Spring MVC's convention over configuration support. Check out ControllerClassNameHandlerMapping.

0

精彩评论

暂无评论...
验证码 换一张
取 消