Spring Core Annotation | Configuration, Bean
HTML-код
- Опубликовано: 15 дек 2024
- Spring Core Annotation | Configuration, Bean:- github.com/nav...
Check out our courses:
Spring Framework in 8 Full Day Course Live: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Complete Java Developer Course Batch-3: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
Spring: go.telusko.com...
Java:- go.telusko.com...
Java Spring:- go.telusko.com...
Java For Programmers:- go.telusko.com...
Python : go.telusko.com...
Git : go.telusko.com...
Docker : go.telusko.com...
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusk...
Follow Navin Reddy on Instagram: / navinreddy20
Subscribe to our other channel:
Navin Reddy : / @navinreddy
Telusko Hindi :
/ @teluskohindi
Truly clarifying, your "trial and error" method of teaching is the right way to teach this sort of stuff. You are awesome!!!
Very clear. Thank god Telusko channel exists !!!
Thumbs up !! :)
I usually don't comment but this video was so helpful that i feel the need to. Thank you so much. Very clear!
If I understand good , we can't achieve loose coupling with annotation base configuration BUT with xml we can.
Can we access a bean from within a Service class instead of the main class(i.e. App in this case)?
Hi @telusko, What is the spring context that you have added?
Is it different for spring-boot?
The best explanation ! Thanks a lot
Thanks a lot for the explanation. It was very helpful.
Why did you give cpu type as Mobileprocessor? And why did you return snapDroagon object for Mobleprocessor Bean in Appconfig Class?
If each of these beans have constructor that do a sysout, then microprocessor class's constructor will get invoked first right ????
You explained very nicely. Thank u sir
Mindblowing Explaination...
What are the annotations used for java based configuration??
How to resolve bean creation exception
Hey, I did exactly like this but I'm getting 'cannot land configuration class: package name' Why is configuration class isn't loading??
same problem did you find solution
@@Krishna-ff3yi nope
@@moonshine4757 I got it how to solve that
@@Krishna-ff3yi Can you tell me?
@@moonshine4757 I put an link you want to do that
why are you creating getter and setter .. ? i did't get that
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.
Thank you
I'm form Belarus and you lesson the best
while creating bean in xml we can inject the properties to the bean with , how can we do that with @Bean annotation
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
@@bharatvarma9278 @bean(name=" ")
@@logarathinam1782 thanks!
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"
Why not use @Component over the Samsung class?
thanks bro..!! you explained very clearly
Good explanation... thanks sir
This is not annotation based configuration, its called java based configuration. In annotations based you dont need to create AppConfig.java class
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?
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.
ClassPathXmlApplicationContext reads files from your application's classpath and FileSystemXmlApplicationContext reads from your system (for instance, "C\asdf\***").
Sir yr videos are very easy for understanding.can u plz provide videos on angular
Thanks Sir nice explanation
Thank you.
Please share link for immediate next video tutorial....
Please provide video on angular 4
without maven can it possible to show spring mvc
yes
Without getter/setter we can run the mobile processor. Then whats the reason for g/s?
You can run it without getter/setters.
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.........
Do we still need getter and setter for mobileprocessor wen we are using @Autowired annotation.?
no
No.. Since MobileProcessor is Autowired, you do not need getter/setter
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
if the MobileProcessor contain another @Autowired reference and it contain another @Autowired reference than how it will create the object ?
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.
This is the bit of confusion state of explanation. I think this could have gone with a different example...
Thanks a lot once again!
Best Channel !!! Thanks
put your paypal in the description so we could donate :D
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
@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?
I think this will not work as Bean is to be declared with Configuration.
@Telusko please comment in case of any wrong understanding.
@@sachinmahajan6173 Bro.. Are you saying @Bean will only work inside a class if on top of the class @Configuration is mentioned ?
V nice
Video is not clear
there was no need for s/g for mobile-processor.
Yes, there the tutor goofed up. Great catch!
In order to explain the importance of Autowiring, he added getter/setter I believe!
Awsome
Very fast
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...
we also need debugging skills, becouse a working code will never make u sweat
Cut bullshit ... He's doing great
@@fahadgaliwango4502 correct
slides are boring af. I'd rather see actual code
the Eclipse IDE icons are so pretty... not
This teaching is not clear.....
I watched 3 times still I'm not clear
U r not defining things properly
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’.
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.
@@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.
Very confusing. Explanation was not clear.
Explanation was clear. You need to know a bit about dependency injection before seeing this video. What exactly was confusing?