WebMvcRegistrationsAdapter

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

文章来自:http://www.cnblogs.com/niaomingjian/p/7753804.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3