Spring doc mentions "lite" mode @Bean
where the annotation is declared not within a @Configuration
class.
The primary difference seems to be whether the @Bean
method is proxied by cglib.
But practically, when is it a good fit to use lite mode @Bean
methods (over a plain java method)?