http://zetcode.com/articles/springbootbean/
A sample of explanation: Spring
@Bean
annotation tells that a method produces a bean to be managed by the Spring container. It is a method-level annotation. During Java configuration (@Configuration
), the method is executed and its return value is registered as a bean within a BeanFactory
.You see, it's that simple and cool :)
No comments:
Post a Comment