@Bean
Marks a method in a @Configuration class whose return value Spring keeps as a bean. It is how you add objects you can't annotate yourself, such as Java's Clock.
Marks a method in a @Configuration class whose return value Spring keeps as a bean. It is how you add objects you can't annotate yourself, such as Java's Clock.