r/learnjava • • 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

46 comments sorted by

View all comments

20

u/MrGooglr Dec 12 '20 edited Dec 12 '20

Hibernate isn’t the part of spring framework. It’s a separate framework that implement JPA specification as ORM.

Security is the module available in Spring framework and its optional, while MVC is a design pattern which spring framework follows.

Now coming to your end-goal of creating a RESTful web service, you don’t need to learn all the spring framework.

You should start with spring boot only. Just search on google how to create an api using spring boot and you’re good to go. Even spring documentation on that is also very informative.

Inside that, you write your logics just in plain core java.

So I consider you must have knowledge of core java.

Also if you want to fetch and store data on DB system, you must know JDBC too.

These are the steps you should proceed with.

4

u/desktoppc Dec 12 '20 edited Dec 12 '20

okay, but I found that most of the websites said that you have to learn Spring MVC and Spring Core first before can use Spring Boot. But I don't know what does the "core" means.

so try to find an online course in Udemy and found this as the most popular course: https://www.udemy.com/course/spring-hibernate-tutorial/

but it's a very very long 41 hours video.

5

u/MrGooglr Dec 12 '20 edited Dec 12 '20

You’re a Python developer and I guess you know how coding flow works. A framework can’t be understood properly unless you have all the basics ready.

Spring MVC is the top level of framework, before that there is basics of spring (core) and spring boot is just more flexible framework version of spring mvc.

What I have said here or in my original comment, I said considering that you know basics of java language and web development in java.

Edit : The course seems nice