Caused by:.NoSuchBeanDefinitionException: No bean named 'userInfoServiceImpl' available
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘userInfoServiceImpl’ available
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1213)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)… 60 more
解決辦法:
在使用Spring框架的時候,沒有生命元件掃描器,沒有把 service實現層 的註解沒有掃描。 所以要在applicationContext.xml中宣告元件掃描器
<context:component-scan base-package=“有service註解的包名”/>
相關文章
- org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'aaaa' availableSpringFrameworkBeanExceptionAI
- spring-mybatis整合:NoSuchBeanDefinitionException: No bean named 'xxx.class' availableSpringMyBatisBeanExceptionAI
- No bean named ''XXX“ availableBeanAI
- No bean named BookServiceImpl availableBeanAI
- 程式碼改造引發的NoSuchBeanDefinitionException:no bean named 'XXXX' available問題解決方案BeanExceptionAI
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of typeSpringFrameworkBeanException
- Spring:錯誤No bean named 'xxxxxxx' availableSpringBeanAI
- No Bean named 'Xxx' available 異常報錯BeanAI
- SpringBoot 學習之 No bean named ‘xxx’ availableSpring BootBeanAI
- spring中No bean named xxx available錯誤SpringBeanAI
- Maven專案報錯:No bean named 'xxxxxx' availableMavenBeanAI
- 報錯:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xxx'is definedSpringFrameworkBeanException
- idea maven搭建spring報錯:No bean named 'xxx' availableIdeaMavenSpringBeanAI
- 使用@Service註解出現No bean named 'xxxx' available]錯誤BeanAI
- Spring中出現:No bean named 'XXX' available問題解決SpringBeanAI
- 記一次idea構建springmvc報錯:No bean named 'cacheManager' availableIdeaSpringMVCBeanAI
- spring getBean(String) No bean named '' is definedSpringBean
- No bean named 'cacheManager' availablej 異常解決BeanAI
- No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1BeanJavaSQLAIAST
- springboot註解實現非同步呼叫時no bean of type TaskExecutor and no bean named 'taskExecutor' eitherSpring Boot非同步Bean
- No bean named 'xxx' is defined錯誤,原因及解決方案Bean
- 使用Idea構建springmvc框架,出現no bean named ‘cacheManager’ is defined 錯誤。IdeaSpringMVC框架Bean
- spring配置檔案中配置了,但找不到Bean , 啟動不報錯,執行報錯No bean namedSpringBean
- Caused by: android.os.Android
- No instances available for XXXAI
- Springboot:Caused by: java.lang.NoSuchMethodError...Spring BootJavaError
- Caused by: Error: ' ' is not a valid resource name characterError
- No Task Available解決方法AI
- ModuleNotFoundError: No module named 'pyttsx'ErrorTTS
- ImportError: No module named torchvisionImportError
- ImportError: No module named `defusedxml`ImportErrorXML
- Bug: No module named ‘pytest‘
- CentOS 7 named配置forwardCentOSForward
- ModuleNotFoundError: No module named ‘Crypto‘ ‘Cryptodome‘Error
- Caused by: java.lang.NumberFormatException: For input string: "18446744073709551615"JavaORMException
- Caused by: java.lang.NoClassDefFoundError: javax/servlet/GenericFilterJavaErrorServletFilter
- [20191211]Free SGA Memory Available.txtAI
- 【譯】gRPC-Web for .NET now availableRPCWebAI