• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

SpringBoot ignores @Configuration class

Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

a SpringBoot application is ignoring a class annotated with @Configuration and I need shelp to understand how I can make SpringBoot
process this class and create beans inside it. Thank you!

Here is what I tried from what I found in the documentation and online and sample code:

- placed the class in the same package and in a subpackage called 'config'
- added the annotations which are below in the code (although SpringBoot should find it without any of these according to the doc)
- imported annotation context in an context.xml file imported with @ImportResource
- added following additoinal dependecies to pom:


<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure-processor -->

<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-configuration-processor -->

context.xml :

Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic