原文:Consider defining a bean of type `xxx` in your configuration问题解决

在使用SpringBoot装配mybatis时出现了异常 查了一下,大意是因为我的StudentService没有被SpringBoot的自动装配扫描到,解决办法就是在SpringBootApplication类上加一行注解指定需要被装配的Service包 Like this: ...

2019-02-04 00:49 0 4026 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM