Комментарии:
@Java Guides How to do autowiring based on condition. Let say here in below code if there is one variable choice if choice =1 then I want Samsung class injected if choice =2 then Redmi if choice =3 then Apple.
. class AppService
{
@Autowire
Mobile mobile;
}
class Samsung implements Mobile{
getProperties()
{
println("Memory: 500GB", "RAM :32GB", "color": Golden)
}
}
class Redmi implements Mobile{
getProperties()
{
println("Memory: 250GB", "RAM" :32GB", "color": Orange)
}
}
class Apple implements Mobile{
getProperties()
{
println("Memory: 1TB", "RAM" :32GB", "color": pink)
}
}
Which one is recommended to use for inject beans setter injection ? constructor injection ? or field injection.
when which one is use please explain to me. so I can use based on your explaination.
Explanation is good but pls go a bit slowly
U are typing very fast and selecting options very quick which makes it a bit confusing to understand
Great bro, very nicely explained
ОтветитьSuperb as usual!
ОтветитьVery good explanation... Thank you
ОтветитьAmazing series Sir Thank you ❤️🙏
Sir I would request you please bring one paid course from scratch spring boot+reactJS fullstack real time level application.. awaited course 🙏
Which one do we need to prefer ?
Do we have any specific usecase for these three ways or all this works the same ?
Thanks
Very informative video
ОтветитьPls make video on profile annotation
Ответить