摘要: 在启动类加注解@ComponentScan("com.controller")即可,括号里表示Controller所在包名。 参考:https://blog.csdn.net/jialiang_chen/article/details/53871046 SpringBoot Controller找不 阅读全文
posted @ 2018-04-08 16:16 lvlin241 阅读(911) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/haoxuanchen2014/p/7771459.html 阅读全文
posted @ 2018-04-08 15:58 lvlin241 阅读(435) 评论(0) 推荐(0)
摘要: 1、@SpringBootApplication:作用域主启动类 参考:https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-using-springbootapplication-annotation.h 阅读全文
posted @ 2018-04-08 14:20 lvlin241 阅读(106) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/iyyy/p/8085719.html 若为maven项目:用maven更新下项目。 阅读全文
posted @ 2018-04-08 11:29 lvlin241 阅读(401) 评论(0) 推荐(0)