Spring Core Annotation | Configuration, Bean

  Рет қаралды 268,800

Telusko

Telusko

Күн бұрын

Пікірлер: 86
@RodrigoNSouto
@RodrigoNSouto 7 жыл бұрын
Truly clarifying, your "trial and error" method of teaching is the right way to teach this sort of stuff. You are awesome!!!
@berjaoui92
@berjaoui92 6 жыл бұрын
Very clear. Thank god Telusko channel exists !!! Thumbs up !! :)
@zanfet
@zanfet 8 жыл бұрын
I usually don't comment but this video was so helpful that i feel the need to. Thank you so much. Very clear!
@mikhail1566
@mikhail1566 6 жыл бұрын
The best explanation ! Thanks a lot
@RezaJafari1984
@RezaJafari1984 4 жыл бұрын
If I understand good , we can't achieve loose coupling with annotation base configuration BUT with xml we can.
@kinshukau
@kinshukau 5 жыл бұрын
Thanks a lot for the explanation. It was very helpful.
@meharajfareedy6031
@meharajfareedy6031 6 жыл бұрын
You explained very nicely. Thank u sir
@trynew7759
@trynew7759 7 жыл бұрын
Mindblowing Explaination...
@pankhustar
@pankhustar 6 жыл бұрын
This is not annotation based configuration, its called java based configuration. In annotations based you dont need to create AppConfig.java class
@insane2539
@insane2539 3 жыл бұрын
is it annotation based based if we mention @ComponentScan(basePackages={"com...}) below @Configuration and write @Component for those classes which we need a bean of?
@Skamch
@Skamch 5 жыл бұрын
Thank you I'm form Belarus and you lesson the best
@user-rp9iis1en6h
@user-rp9iis1en6h 4 жыл бұрын
Hi @telusko, What is the spring context that you have added? Is it different for spring-boot?
@bigbeast007
@bigbeast007 Жыл бұрын
Can we access a bean from within a Service class instead of the main class(i.e. App in this case)?
@rajyamramasahayam7748
@rajyamramasahayam7748 7 жыл бұрын
Hello Sir, Your videos are very informative., Thank you for that, But, Could you please upload the videos in order by date or by giving number to the videos..Because I am watching each and every video of yours. So that it is clear for us to watch without missing any content.
@TheAbhishek2828
@TheAbhishek2828 6 жыл бұрын
thanks bro..!! you explained very clearly
@manjusha9630
@manjusha9630 6 жыл бұрын
while creating bean in xml we can inject the properties to the bean with , how can we do that with @Bean annotation
@bharatvarma9278
@bharatvarma9278 4 жыл бұрын
have you found out how to do that? couldn’t find any resources which shows how to set property values using beans in configuration class
@logarathinam1782
@logarathinam1782 4 жыл бұрын
@@bharatvarma9278 @bean(name=" ")
@nitishprajapati9787
@nitishprajapati9787 4 жыл бұрын
@@logarathinam1782 thanks!
@moonshine4757
@moonshine4757 3 жыл бұрын
Hey, I did exactly like this but I'm getting 'cannot land configuration class: package name' Why is configuration class isn't loading??
@Krishna-ff3yi
@Krishna-ff3yi 3 жыл бұрын
same problem did you find solution
@moonshine4757
@moonshine4757 3 жыл бұрын
@@Krishna-ff3yi nope
@Krishna-ff3yi
@Krishna-ff3yi 3 жыл бұрын
@@moonshine4757 I got it how to solve that
@moonshine4757
@moonshine4757 3 жыл бұрын
@@Krishna-ff3yi Can you tell me?
@Krishna-ff3yi
@Krishna-ff3yi 3 жыл бұрын
@@moonshine4757 I put an link you want to do that
@nareshsreerama7792
@nareshsreerama7792 7 жыл бұрын
Good explanation... thanks sir
@anushbabu5023
@anushbabu5023 7 жыл бұрын
Thanks Sir nice explanation
@lakshmism3544
@lakshmism3544 8 жыл бұрын
thanks Navin for sharing the knowledge.can you please explain on details about the following: ApplicationContext context = new FileSystemXmlApplicationContext();ApplicationContext context = new ClassPathXmlApplicationContext();and what is the difference between them. How can we know which situation to use them.
@vakho30
@vakho30 8 жыл бұрын
ClassPathXmlApplicationContext reads files from your application's classpath and FileSystemXmlApplicationContext reads from your system (for instance, "C\asdf\***").
@jasnanajeem5015
@jasnanajeem5015 2 жыл бұрын
If each of these beans have constructor that do a sysout, then microprocessor class's constructor will get invoked first right ????
@NotSureOf
@NotSureOf 6 жыл бұрын
This is the bit of confusion state of explanation. I think this could have gone with a different example...
@shivisinghal1122
@shivisinghal1122 7 жыл бұрын
Sir yr videos are very easy for understanding.can u plz provide videos on angular
@ravitejadesai
@ravitejadesai 5 жыл бұрын
Why did you give cpu type as Mobileprocessor? And why did you return snapDroagon object for Mobleprocessor Bean in Appconfig Class?
@prernak9699
@prernak9699 6 жыл бұрын
Best Channel !!! Thanks
@sagarchindam8846
@sagarchindam8846 6 жыл бұрын
Do we still need getter and setter for mobileprocessor wen we are using @Autowired annotation.?
@ramsikarwar7
@ramsikarwar7 6 жыл бұрын
no
@skumarv12
@skumarv12 6 жыл бұрын
No.. Since MobileProcessor is Autowired, you do not need getter/setter
@shashgo
@shashgo 7 жыл бұрын
Navin, I did exactly what you did, the only difference is the package name, but it is consistent amongst all the three files. And I did the last thing you did also, that is putting the @Bean annotation, but Im still getting the "No qualifying bean of type [com.spring.SpringAnno.Samsung] is defined"
@KrishnaDhakate
@KrishnaDhakate 6 жыл бұрын
Without getter/setter we can run the mobile processor. Then whats the reason for g/s?
@TrulyLordOfNothing
@TrulyLordOfNothing 6 жыл бұрын
You can run it without getter/setters.
@anjaliwani1799
@anjaliwani1799 6 жыл бұрын
What are the annotations used for java based configuration??
@ashuzguitar
@ashuzguitar 4 жыл бұрын
Thanks a lot once again!
@tomaspyth7017
@tomaspyth7017 7 жыл бұрын
I would appreciate it if you could maintain the upload date in the video description so that we know wether the tutorial still (!)actual. Nevertheless great video, you got a thumbs up and an abo from me... sorry for my English
@devegus79
@devegus79 3 жыл бұрын
Thank you.
@shivisinghal1122
@shivisinghal1122 6 жыл бұрын
Please provide video on angular 4
@prabhashprabhat2550
@prabhashprabhat2550 6 жыл бұрын
Please share link for immediate next video tutorial....
@peedrap987654321
@peedrap987654321 5 жыл бұрын
if the MobileProcessor contain another @Autowired reference and it contain another @Autowired reference than how it will create the object ?
@AmlanMohantyOfficial
@AmlanMohantyOfficial 5 жыл бұрын
Simple thing is.. If you are writing @Autowired for any class, Make sure you must mention @Component on top of the same class while defining the class. I mean if you are autowiring Laptop class inside Phone class make sure you must mention @Component while defining Laptop class.
@pmtk2055
@pmtk2055 2 жыл бұрын
Why not use @Component over the Samsung class?
@somnathroy8803
@somnathroy8803 6 жыл бұрын
without maven can it possible to show spring mvc
@ramsikarwar7
@ramsikarwar7 6 жыл бұрын
yes
@Raj-do7zs
@Raj-do7zs 5 жыл бұрын
why are you creating getter and setter .. ? i did't get that
@ayami123
@ayami123 4 жыл бұрын
put your paypal in the description so we could donate :D
@DoubtedBuddy
@DoubtedBuddy 4 жыл бұрын
but still it is not fully annotation based component as you have mentioned component annotation in xml file through which you can provide object to class car but in tyre case it is fully annotation based as it is not getting object through xml file can you avoid xml file in case of giving object to car class.........
@madhulikam8631
@madhulikam8631 3 жыл бұрын
How to resolve bean creation exception
@AmlanMohantyOfficial
@AmlanMohantyOfficial 5 жыл бұрын
@Telusko.. If we dont write @Configuration on top of AppConfig class and keep everything else exactly the same as you have mentioned over here.. Are we going to get any exception?
@sachinmahajan6173
@sachinmahajan6173 5 жыл бұрын
I think this will not work as Bean is to be declared with Configuration. @Telusko please comment in case of any wrong understanding.
@AmlanMohantyOfficial
@AmlanMohantyOfficial 5 жыл бұрын
@@sachinmahajan6173 Bro.. Are you saying @Bean will only work inside a class if on top of the class @Configuration is mentioned ?
@hithere3379
@hithere3379 2 жыл бұрын
Wait i got confused fellas , we were easily getting object of samsung with new operator. So why do all this configuration to achieve the same objective? Please help genuinely
@sreeharimanoharan3203
@sreeharimanoharan3203 6 жыл бұрын
Awsome
@parwana1000
@parwana1000 7 жыл бұрын
V nice
@AbhishekKumar-yy3ui
@AbhishekKumar-yy3ui 6 жыл бұрын
there was no need for s/g for mobile-processor.
@TrulyLordOfNothing
@TrulyLordOfNothing 6 жыл бұрын
Yes, there the tutor goofed up. Great catch!
@skumarv12
@skumarv12 6 жыл бұрын
In order to explain the importance of Autowiring, he added getter/setter I believe!
@issacnewton4976
@issacnewton4976 6 жыл бұрын
Appreciate your effort but a lecture should concentrate more on a good explanation on concepts , may be using a ppt and a little touch up on the technical aspects. It should be more organized without any debugging during the lecture as we consider you as a tutor or expert...
@fahadgaliwango4502
@fahadgaliwango4502 6 жыл бұрын
we also need debugging skills, becouse a working code will never make u sweat
@ahmedsufiyan20
@ahmedsufiyan20 6 жыл бұрын
Cut bullshit ... He's doing great
@nagendersripada7798
@nagendersripada7798 2 жыл бұрын
@@fahadgaliwango4502 correct
@ngndnd
@ngndnd Жыл бұрын
slides are boring af. I'd rather see actual code
@priyasagar1332
@priyasagar1332 4 жыл бұрын
Video is not clear
@online15education
@online15education 4 жыл бұрын
Very fast
@mayankagarwal9786
@mayankagarwal9786 6 жыл бұрын
Please use more real world examples rather than this Samsung and all, if I use this Samsung class example in interview then interviewer will not waste his time with me and will say ‘I am done’.
@pankhustar
@pankhustar 6 жыл бұрын
He is here to explain the concept and not what you need to say in the interview room. If you know the concept you can create as many example as you want.
@mayankagarwal9786
@mayankagarwal9786 5 жыл бұрын
@@pankhustar Concepts can be explained well using real world examples that wouldn't waste our time to create other examples to understand the concept well.
@gopiacs2184
@gopiacs2184 Жыл бұрын
This teaching is not clear..... I watched 3 times still I'm not clear U r not defining things properly
@paulfrischknecht3999
@paulfrischknecht3999 4 жыл бұрын
the Eclipse IDE icons are so pretty... not
@4thIdiot
@4thIdiot 6 жыл бұрын
Very confusing. Explanation was not clear.
@TrulyLordOfNothing
@TrulyLordOfNothing 6 жыл бұрын
Explanation was clear. You need to know a bit about dependency injection before seeing this video. What exactly was confusing?
Spring Core Annotation Component AutoWired Primary Qualifier
8:27
Spring | Autowire | Dependency Injection | Spring Boot
18:23
Telusko
Рет қаралды 590 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Spring Framework Tutorial | Full Course
1:30:00
Telusko
Рет қаралды 2,2 МЛН
#6  Dependency Injection using Spring Boot
13:34
Telusko
Рет қаралды 75 М.
What is JPA? | JPA Implementation
26:21
Telusko
Рет қаралды 392 М.
Spring MVC Tutorial | Full Course
1:14:13
Telusko
Рет қаралды 1 МЛН