Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'user' available


Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'user' availab

初學者一碰到就蒙逼,主要類名和對象名不一致導致的異常,莫慌。在applicationContext.xml里改下user就可以了。

 


免責聲明!

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



猜您在找 Spring 報錯 :org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'statementController' available org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'cn.yang.service.StudentInterface' available: expected at least 1 bean which qualifies as autowire candidate springboot繼承JpaRepository報org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualif Spring Boot 調用 MongoRepository時報org.springframework.beans.factory.NoSuchBeanDefinitionException錯誤的解決辦法 Exception in thread "main" java.lang.NoClassDefFoundError:org/springframework/beans/factory/config/EmbeddedValueResoler org.springframework.beans.factory.BeanDefinitionStoreException Invalid bean defi Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'advertiseRestControll Cannot resolve reference to bean 'mongoTemplate' while setting bean property 'mongoOperations'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with na org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'indexServiceImpl': Unsatisfied dependency expressed through field 'indexDao'; nested exception is org.s Spring錯誤之org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'bookService' is expected to be of type 'pw.fengya.tx.BookService' but was actually of type 'com.sun.proxy.$Proxy1
 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM