r/learnjava • u/desktoppc • Dec 12 '20
[ASK] How to Learn Java Spring?
I have a background in backend development using Python Django, but now I have to use Java Spring. I can do programming in Java but haven't used Spring.
But the problem is there are so many Java Spring framework like Hibernate, Security, MVC, etc. In addition, I also see that we have to define our ORM implementation like how to make the SQL query, etc. I haven't done anything like that because in Python Django the ORM implementation has been made by the framework.
I would like to learn how to make a REST API as most of the backend job required this for Junior Engineer (Fresh Graduate), how do I start? do I need to learn all java spring framework?
78
Upvotes
2
u/moe87b Dec 12 '20 edited Dec 12 '20
I started learning spring almost a year ago, and it was a huge mes because every tutorial I see or article I read is different from the others and does things in a different way. I got lost, but then I eventually found my way.
You need to know what do you want to do with java spring. Securing applications ? Persisting data? micro services ? each is different and most of tutorials I found on the internet assume you already know a lot of things or explain essentials in a poor manner.
I highly recommend reading books, Spring boot in action by Craig Walls is great, it made me understand key concepts in a very simple manner. Note that spring boot is basically the new way to use the spring framework with minimal amount of configuration to do using annotations instead of XML
I'm right now learning to implement and use Spring security by reading Spring security in action it is also a great resource.