在SpringBoot1.4.0+以后
import org.springframework.boot.context.embedded.FilterRegistrationBean;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
变成了
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
我使用的SpringBoot1.5.1.RELEASE版本的,改成了如下这个。
本文介绍从SpringBoot1.4.0开始,Servlet和Filter注册Bean的包路径变更。适用于SpringBoot1.5.1.RELEASE及后续版本。
1826

被折叠的 条评论
为什么被折叠?



