美文网首页
为什么启动类要加注解@EnableWebMvc

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

作者: dwwl | 来源:发表于2019-07-17 16:42 被阅读0次

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,这里有官方文档的连接

相关文章

网友评论

      本文标题:为什么启动类要加注解@EnableWebMvc

      本文链接:https://www.haomeiwen.com/subject/nykclctx.html