org.springframework.beans.factory.NoSuchBeanDefinitionException

No qualifying bean of type [FooController$BarController] is defined

Samebug tips1

You could me missing na annotation (@Service or @Component) or a definition in the xml. Also, look if the class where your implementation is located is properly scanned.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2129

  • via Spring JIRA by Tobias Mattsson, 1 year ago
    No qualifying bean of type [FooController$BarController] is defined
  • via Spring JIRA by Tobias Mattsson, 1 year ago
    No qualifying bean of type [FooController$BarController] is defined
  • via GitHub by whiskeysierra
    , 8 months ago
    No qualifying bean of type [org.camunda.bpm.spring.boot.starter.CamundaBpmProperties] is defined
  • Stack trace

    • org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [FooController$BarController] is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:318) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:985) at NestedControllerTest.testFindsNestedController(NestedControllerTest.java:16)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 week ago
    Once, 1 month ago
    Unknown user
    Once, 1 month ago
    4 times, 9 months ago
    6 times, 9 months ago
    26 more bugmates