为什么启动类要加注解@EnableWebMvc

2019-07-17  本文已影响0人  dwwl

SpringBoot启动类为什么要添加@EnableWebMvc?

See docs.spring.io/spring/docs/current/spring-framework-reference/…. Does it work, yes, is it sufficient it might. But the version you use still has the old DefaultAnnotationHandlerMapping instead of the newer more powerful/flexible RequestMappingHandlerMapping and other classes. – M. Deinum Sep 16 '16 at 13:42

问题来源:https://stackoverflow.com/questions/39532859/how-does-requestmapping-work-without-enablewebmvc

知道大概为啥了,但是并不知道这个RequestMappingHandlerMapping这个有什么高级的特性

具体这个注解是干嘛的?看这个(需要梯子),https://stackoverflow.com/questions/19291329/enablewebmvc-annotation-meaning,这里有官方文档的连接

上一篇下一篇

猜你喜欢

热点阅读