摘要: 在启动类加注解@ComponentScan("com.controller")即可,括号里表示Controller所在包名。 参考:https://blog.csdn.net/jialiang_chen/article/details/53871046 SpringBoot Controller找不 阅读全文
posted @ 2018-04-08 16:16 lvlin241 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/haoxuanchen2014/p/7771459.html 阅读全文
posted @ 2018-04-08 15:58 lvlin241 阅读(417) 评论(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 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/iyyy/p/8085719.html 若为maven项目:用maven更新下项目。 阅读全文
posted @ 2018-04-08 11:29 lvlin241 阅读(392) 评论(0) 推荐(0) 编辑