Czar
12/03/2019, 2:11 PM@Configuration class MyConf(private val someBean: SomeBean) {
@Bean fun myBean(): MyBean { /* do something with someBean */ }
}
and
@Configuration class MyConf {
@Bean fun myBean(someBean: SomeBean): MyBean { /* do something with someBean */ }
}
But I don't remember either which video it was or what was the difference. Googling around didn't yield any results yet.
Does anyone remember/know what I'm talking about?proxyBeanMethods
to false
to improve performance here and there.
So my examples are not really relevant.@Configuration(proxyBeanMethods=false)
class MyConfiguration {
@Bean fun myBean(): MyBean {/*...*/}
}
vs
@Component
class MyConfiguration {
@Bean fun myBean(): MyBean {/*...*/}
}
corneil
12/03/2019, 2:57 PMCzar
12/04/2019, 6:55 AMproxyBeanMethods=false
all @Configuration→@Bean
are lite `@Bean`s as if they were declared in a @Component
, but maybe I'm missing something.corneil
12/04/2019, 7:19 AM