Error creating bean with name 'itemCatController'


Error creating bean with name 'itemCatController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.taotao.service.ItemCatService com.taotao.controller.ItemCatController.itemCatService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.taotao.service.ItemCatService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

今天,在開發項目的時候,遇到這個問題:Error creating bean with name 'itemCatController': Injection of autowired dependencies failedError creating bean with name itemCatController: Injection of autowired dependencies failed; - 魯大師 - 何來
         后來,檢查半天后發現,是在service層,少寫了一個@service,改完之后,以上錯誤不再出現。Error creating bean with name itemCatController: Injection of autowired dependencies failed; - 魯大師 - 何來


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM