I am trying to understand how beans that we make using @Configuration
tends to override the beans that are generated by SpringBoot by default. I have been working on a project where in many cases we create beans for things like ZuulConfigs and the assumption is, whatever we are making shall take precedence over the default generated bean. I have been trying to figure this out but can't. Basically,
- Is Spring achieving this via some custom class loader
- If not how is this precedence working. Can I give some precedence in similar manner to my beans
- Can I generate similar hierarchy in my project,if so how
The help is highly appreciated
See Question&Answers more detail:os