@BeanSetup & @Bean
If you need to provide dependencies manually, you can use the @BeanSetup annotation.
A method (provider) that has @Bean annotations must return an object that will be added to the dependency list. Provider methods CAN BE STATIC!
Provider method can also accept parameters that will be automatically injected into the method! You can also inject dependencies into the constructor.
Last updated