org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'lhsDBConnectionInfo' is defined

Google Groups | Kelvin | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot resolve reference to bean 'lhsDBConnectionInfo' while setting bean property 'lhsDBConnectionInfo'

    Google Groups | 7 months ago | Kelvin
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'lhsDBConnectionInfo' is defined
  2. 0

    Jetty无法启动

    GitHub | 6 months ago | slowlizard
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency [com.meipian.push.service.contract.IUserPushService]: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  3. 0

    SwaggerSpringMvcPlugin not working on Spring MVC

    Stack Overflow | 2 years ago
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] found for dependency [collection of org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue with @ComponentScan, filters since migrating to javaconfig

    Stack Overflow | 3 years ago | balteo
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.bignibou.service.searchEngine.SearchEngineService] 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)}
  6. 0

    Spring MVC JPA REST-Error creating bean

    Stack Overflow | 4 years ago | N3WYrK
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.team.TeamDao] 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)}

  1. tzrlk 1 times, last 9 months ago
19 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.NoSuchBeanDefinitionException

    No bean named 'lhsDBConnectionInfo' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
  2. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:510)[diffkit-app.jar:na]
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1056)[diffkit-app.jar:na]
    3. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)[diffkit-app.jar:na]
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[diffkit-app.jar:na]
    5. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)[diffkit-app.jar:na]
    6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)[diffkit-app.jar:na]
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)[diffkit-app.jar:na]
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)[diffkit-app.jar:na]
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[diffkit-app.jar:na]
    10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[diffkit-app.jar:na]
    11. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[diffkit-app.jar:na]
    12. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[diffkit-app.jar:na]
    13. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[diffkit-app.jar:na]
    14. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[diffkit-app.jar:na]
    15. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)[diffkit-app.jar:na]
    15 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)[diffkit-app.jar:na]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)[diffkit-app.jar:na]
    2 frames
  4. org.diffkit.util
    DKSpringUtil.getBean
    1. org.diffkit.util.DKSpringUtil.getBean(DKSpringUtil.java:46)[diffkit-app.jar:na]
    1 frame
  5. org.diffkit.diff
    DKApplication.main
    1. org.diffkit.diff.conf.DKApplication.runPlan(DKApplication.java:164)[diffkit-app.jar:na]
    2. org.diffkit.diff.conf.DKApplication.main(DKApplication.java:115)[diffkit-app.jar:na]
    2 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_80]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.7.0_80]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.7.0_80]
    4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.7.0_80]
    4 frames
  7. com.jdotsoft.jarloader
    JarClassLoader.invokeMain
    1. com.jdotsoft.jarloader.JarClassLoader.invokeMain(JarClassLoader.java:571)[diffkit-app.jar:na]
    1 frame
  8. org.diffkit.diff
    DKLauncher.main
    1. org.diffkit.diff.conf.DKLauncher.main(DKLauncher.java:29)[diffkit-app.jar:na]
    1 frame