r/SpringBoot • • Nov 29 '24

How should I learn SpringBoot?

Hello everyone! I'm a third year cs student trying to get started learning springboot as I recently found out that i enjoy and love coding in java. I already know the basics of node js, react js, DBs, etc.

Every SpringBoot course I see is huge with several hours of content, most of which is I think wouldn't be much of an use to a student getting started. My doubts today is:

  1. How much of java do i need to know to get started with SpringBoot?(I already know the basics and OOP)

  2. What concepts of SpringBoot do I need to grasp in order to start making beginner projects as a student?

Thank You...

27 Upvotes

23 comments sorted by

17

u/ElegantConcept9383 Nov 29 '24

Learning spring takes time. It's not like nodejs express.

  1. Basics of java will do but you should know about collections, streams and multithreading. Rest you'll learn as you progress

  2. Whatever course you are seeing online is bare minimum. Spring security, JDBC, JPA hibernate , old architecture of spring ( coz that is basics ), spring REST. There are bare minimum.

Spring is vast, it takes time. It's a never ending process. I have been working in spring for 4 years Still I can't say I know a lot of spring. Spring is huge.

1

u/AmazingInflation58 Nov 29 '24

Thank you for the advice. Noted!

2

u/HephaestoSun Nov 29 '24

Don't take what he said as a criticism nor as a gospel, yes spring is complex and it's gonna take a while, but that shouldn't scare you of trying it, i posted a comment down below with a very good starting guide for springboot, it has even some tdd, just take it slow and see if you like it, if you really want to learn i believe there it's a great place, my only advice is that the tools are secondary to the crafstman and you must use them without fear of breaking. Break stuff, understand why repeat until you get it, but you need to have at least a goal of your project kinda defined. The rest is making both ends meet haha.

8

u/cooks2music Nov 29 '24

The best way is just to start doing it. There are concepts such as annotations that rely on reflection but you don’t need to understand “how it works” to get started.

Find any tutorial on spring, rest, jpa and follow it. You’ll have a working something. Then start changing up what you wrote to get an understanding of the principles. Then start on your own project.

5

u/[deleted] Nov 29 '24

I just started learning Springboot and at first I'm just trying to learn by building. So far managed to create Post/get APIs, connect to MySQL, perform queries, using DTOs etc

Starting to learn spring security. So far what I saw it's gonna take a long time but really interesting.

4

u/DeterioratedEra Junior Dev Nov 29 '24

Just start making apps. Make one that uses JPA, make one that uses JDBC, make one that uses H2. Make one that uses JUnit 4, make one that uses Jupiter. Make one that uses OpenAPI, one that uses Spring AI. Learn Java streams, Jackson, and Spring RestTemplate.

3

u/Large-Ad8055 Nov 29 '24

I think you can start with this Youtube video https://youtu.be/-Fe0zk-F4OA?si=REZ_S0duxgT5FijE . I found it beginner friendly and it explains every thing you need to know to start using spring boot.

3

u/mroptman Nov 30 '24 edited Dec 05 '24

Highly recommend Laurentiu’s “Spring Start Here”. His writing style is very intro friendly and includes graphics to help illustrate what Spring Core is. Then he adds extra layers like Spring Web and then Spring Boot (which uses Spring Core, Web, etc).

Reading this book helped understand the Spring projects, what they do, and how Spring Boot wired everything together. Check it out! His book was written for Spring Boot 2.x but the concepts should easily work with 3.x.

https://laurspilca.com/spring-start-here/

1

u/Blessan-Alex Nov 29 '24

I also need the answer to this cuz everything you said in this post is literally me. I love java now, can't shift. Trying to start spring boot . If you are Indian I found "building rest apis with springboot" by Anuj bhaiya to be very useful. Then "backend master" series by lovepreet Singh.
But take this with a grain of salt cuz am just like you.

1

u/AmazingInflation58 Nov 29 '24

The problem is most of these courses on youtube teach wayy too much that most learners wont even use it in the early stages of their career.

1

u/Careful_Ring2461 May 29 '25

Hi 6 months later do you have any advice on how to get started with Java and Spring boot?

2

u/Then-Boat8912 Nov 29 '24

Start reading the core documentation.

2

u/Evtime-Better31 Nov 30 '24

I've been using SpringBoot for many years now (Java and Kotlin).
There are still things I haven't practiced/used in it, so it's normal to get overwhelmed in the beginning.

I'll start with your second question:

Try first to grasp the concept of dependency injection, it's the most important concept IMO.

Try after that to understand the different annotations and different layers, basically controllers, services, repositories, etc ..
Try creating a simple API with a couple endpoints to do CRUD operations.

Once you understand how this works , you can start missing around with Spring Security. Get to know the other modules.

As for the first question, to write a code that works , you probably don't need much if you've already familiar with other languages. you need to know the basic syntax, of classes, interfaces, inheritance, if/switch, loops ...

Once you get more familiar with it, you can start to use specific APIs like steams and collections ...

Checkout Dan Vega (https://www.youtube.com/watch?v=TBlB2_4_Sqo) or Amigoscode, they have different approaches, see which one suits better and stick with it.

Good luck

-1

u/EducationalMixture82 Nov 30 '24

Why spend time asking on reddit instead of just google the docs and start reading them, and instead of asking ”how should i learn” learn and ask about the things you dont understand from the docs instead

0

u/AmazingInflation58 Nov 30 '24

I dont think youve read my post clearly.

keywords: Every SpringBoot course I see is huge with several hours of content, most of which is I think wouldn't be much of an use to a student getting started.

1

u/EducationalMixture82 Dec 02 '24

"several hours of content" here is your problem. If you are to become a software engineer you need to get comfortable in reading. Most documentation is reading, and watching videos is slow. I stand by what i said. Dont take a course, read the docs, and get used to reading docs.

Start reading the docs, and if there is something you dont understand. Ask about the docs instead.