Spring Bean Lifecycle - Java Config

preview_player
Показать описание
In this video, shows you use Java classes as Configuration instead of XML.

Рекомендации по теме
Комментарии
Автор

If we use both @bean and @Component with different init method and post construct method with scope being singleton which method will be used to initialise bean ?

santhshhm
Автор

I can't find the video when you explain @PostConstruct in Bean Lifecycle

AndiGela
Автор

3:09 Step by step following. But I Still encounter an error: Exception in thread "main" Cannot invoke "Object.getClass()" because "cause" is null
What should I do?

jianhe
Автор

You have explained about destroy method and prototype before.

If we set the scope "prototype", custom init and default constructor neither won't be triggered?
I tried it on the code of this video, but there was no output.

amirhosseinnouri
welcome to shbcf.ru