原文:Checks autowiring problems in a bean class.

File Settings Editor Inspections Spring Spring Core Code Autowiring for Bean Class disable 將復選框取消 ...

2020-06-05 21:25 0 1043 推薦指數:

查看詳情

bean名稱相同沖突Annotation-specified bean name 'xx' for bean class [xxx] conflicts with existing, non-compatible bean definition of same name and class[xxx]

工程中引入其他工程的包,由於兩個工程中有重名的兩個bean,導致在啟動時提示如下錯誤: 根據bean名稱在ide中查找,找到這兩個重名的類,可以看到由於這兩個類使用@Service標注,此時如果不使用命名,那么Spring會在掃描時,將類名首字母小寫作為key,放到一個全局Map中維護。此時 ...

Fri Oct 11 23:40:00 CST 2019 0 5366
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM