05 2016 档案
摘要:@Configuration public class WebMvcConfig extends WebMvcConfigurerAdapter { @Autowired private XxxInterceptor xxxInterceptor;//需要在该拦截器上添加@Configuration
阅读全文
摘要:spring boot项目出现controller的路由没被注册,原因:启动类application跟controller不在一个包中,扫描不到controller, 如启动类在com.oyx.a,controller在com.oyx.b 解决办法: 方法1:将controller跟启动类放在一个包
阅读全文