0

What will be the difference between the beans declared with @Bean in @Configration and @Component. I know there is a difference because of CGLIB. How many instances in both cases?

  • This could help you https://stackoverflow.com/questions/39174669/what-is-the-difference-between-configuration-and-component-in-spring – Ram Mar 20 '18 at 18:19
  • And these too... https://stackoverflow.com/questions/38089200/what-is-cglib-in-spring-framework and https://stackoverflow.com/questions/11903053/difference-between-component-and-configuration-in-spring-3 (Which is answered by @Javaboy) – Ram Mar 20 '18 at 18:28

0 Answers0