原因是:在主类上没有加@ServletComponentScan注解。 配置druid必须加@ServletComponentScan注解,如果不加,访问页面打不开,filter和servlet、 listener之类的需要单独进行注册才能使用,spring boot里面提供的该注解起到注册作用
转载于:https://my.oschina.net/u/1419305/blog/1490037
原因是:在主类上没有加@ServletComponentScan注解。 配置druid必须加@ServletComponentScan注解,如果不加,访问页面打不开,filter和servlet、 listener之类的需要单独进行注册才能使用,spring boot里面提供的该注解起到注册作用
转载于:https://my.oschina.net/u/1419305/blog/1490037