原文:關於spring boot自動注入出現Consider defining a bean of type 'xxx' in your configuration問題解決方案

將接口與對應的實現類放在與application啟動類的同一個目錄或者他的子目錄下 參考:https: blog.csdn.net a article details ...

2019-03-10 13:20 0 1083 推薦指數:

查看詳情

Consider defining a bean of type `xxx` in your configuration問題解決

在使用SpringBoot裝配mybatis時出現了異常 查了一下,大意是因為我的StudentService沒有被SpringBoot的自動裝配掃描到,解決辦法就是在SpringBootApplication類上加一行注解指定需要被裝配的Service包 Like this: ...

Mon Feb 04 08:49:00 CST 2019 0 4026
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM