WebMvcRegistrationsAdapter

时间:2017-10-30 14:48:22   收藏:0   阅读:2218

27.1.1. Spring MVC自动配置

如果希望使用自定义的RequestMappingHandlerMappingRequestMappingHandlerAdapter,或ExceptionHandlerExceptionResolver,你可以声明一个WebMvcRegistrationsAdapter实例提供这些组件。

org\springframework\boot\spring-boot-autoconfigure\2.0.0.M5\spring-boot-autoconfigure-2.0.0.M5.jar中WebMvcRegistrationsAdapter被废弃了。因为WebMvcRegistrations接口可以有默认的方法了(Java8的特性)。

as of 2.0.0 WebMvcRegistrations has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!