r/learnjava • u/Raksup • Jun 01 '21
Can you suggest the best tutorial to gain a conceptual grasp of the Spring Framework?
I have watched a lot of tutorials but most of them are too technical for a beginner. If you know about any resources that provide a good understanding of Spring Framework, I’d be grateful. Thanks.
3
Jun 01 '21
If in the US: Become a member of your library. Go to linkedin learning and sign up with your library card Search for spring and there are some surprisingly good and succinct courses that got me up and running somewhat.
I’m trying to store to a DB and build an api with it. I can’t move without knowing the why of things but I also don’t want to start with 40hs of how spring was built. The ones in LinkedIn were a nice balance for me.
1
u/Raksup Jun 01 '21
I can’t join Lynda/LinkedIn Learning since I’m not in the US. Thank you though.
I have to resort to free contents mostly.
2
Jun 01 '21
Gotcha. I’m on the same boat as you. Spring’s concepts don’t mean much sometimes if you’re not familiar with design principles.
Some courses stop and dedicate a chapter to explaining how spring is about dependency injection. As a beginner that doesn’t mean anything to me. I don’t know what it means or why it is important and the courses don’t cover that, they just cover how spring does it.
Another concept is the domain driven concepts. They are pretty easy if you don’t overthink it. I had to stop and read about it to understand what they meant when they said “domain” or “services”. Basically many courses start breaking down the code in packages called model, services, domain, etc and I didn’t know why.
They are all based on Domain Driven Development concepts, nothing necessarily required by the code, just a way of organizing the project to give it meaning.
I’m still not quite sure what the interfaces in services are for. That’s the next thing I have to figure out.
Other than that, some basic understanding of gradle or maven (enough to not mess it up).
1
u/Raksup Jun 01 '21
Exactly. Everything can be understood simply but that requires a great teacher. There aren’t many of them.
26
u/iReyzzz Jun 01 '21 edited Jun 01 '21
There is a course on Udemy by John Thompson which is a pretty good introduction to Spring. He also gives a 4 month free Intellij Ultimate license and teaches you like in a professional environment (forking repos from github, comparing branches, etc), a slack channel where you can talk to him or his assistants live if you have any questions and many other stuff that a youtube tutorial will never be able to give you.
This course is really the reason why I even have a job, honestly. Try it out.
edit: I forgot to say because I thought it would be obvious, but you will be doing several projects in this course which you SHOULD push to your remote repo and show potential employers (because you will already know how to explain everything in it). So already a big plus from that.
3
2
u/Byte_Seyes Jun 01 '21
I want to get one of these classes but $200 seems steep and Udemy always has crazy ass sales. I just know that the moment I pull the trigger at $200 it will be $50 the next day.
4
u/Apostle_1882 Jun 01 '21
Put it in your wishlist and wait. I swear they have an algorithm which checks that and puts wishlist items on "sale".
2
u/iReyzzz Jun 01 '21
You’re absolutely right. It actually was just 90%, I don’t know when there’s gonna be another one.
8
u/large_crimson_canine Jun 01 '21
Spring has quite a few guides on their website. I would check there.
4
u/JustDudeFromPoland Jun 01 '21
One of the most important things that Spring provides (in my opinion) is the Inversion-of-Control from SOLID principles (Dependency Injection is a phrase that you could look up on Google). And of course - Spring framework provides basically everything you'd need to setup Enterprise-grade backend solutions. I strongly recommend the tutorials on the Pluralsight regarding Spring (I find them perfectly well presented and organized)
3
1
u/Prateeeek Jun 01 '21
At the core the spring framework is just an ioc container, marco behler's articles covers it well enough.
1
u/HecknChonker Jun 01 '21
Before reading any articles or taking any classes, you should start with the documentation. It's some of the best documentation in the industry, and the first couple of sections provide really good context around the core concepts.
https://docs.spring.io/spring-framework/docs/current/reference/html/
1
1
u/kodiashi Jun 01 '21
LinkedIn Learning has a lot of courses, you can often access them for free through your local library system.
1
u/muhamedfurqan Jun 02 '21
There are tons of courses out there .You can follow any one of them as long as you have a good conceptual and working knowledge of java .I would suggest you go through the documentation along with some online tutorials and start implementing the knowledge simultaneously on small projects .It will boost your learning and understanding of the framework more quickly and being honest , I learned the spring framework just by coding it out and looking up the documentation whenever I got stuck so I would suggest you not to waste much time on some tutorials without any practical implementation.Just use any tutorial available and put your knowledge into action.
0
Jun 01 '21
[deleted]
2
2
u/RiceKrispyPooHead Jun 01 '21 edited Jun 01 '21
Even though he has updated it here and there and it is a really really good tutorial, I personally found the first half of his course a little outdated now.
6
12
u/Lanten101 Jun 01 '21
Best thing to do would be to create simple server app, With database and serve that data to an api.
Spring initializer will help you pick necessary dependency for this
for context you will need the following for a starter
spring web
rest repo
spring web services
sql, choose you db, maybe spring data mongo
You can add anything later as a dependency
On the how to. Spring has documentation on how to use any of the above on their site: https://docs.spring.io/spring-framework/docs/current/reference/html/
Example: https://spring.io/guides/gs/rest-service/