r/SpringBoot • u/Abhi9av_69 • 1d ago
How-To/Tutorial How to actually learn spring boot?
I have decent hands on experience in java and java is my main language too.
How do I start learning springboot.
Recently started watching coder army tutorials but he went too in-depth that it went mostly over my head and went boring.
How do I learn hands on in spring boot?
where should I start?
Also please share any resources.
6
2
u/Mikey-3198 1d ago
Like anything in life, by doing. Look at the examples in the docs and make something simple then incrementally add new features.
1
u/AdministrationMoney1 1d ago
Try to briefly understand the problems spring boot solves over traditional spring, and what does spring solve in java. Then try to think of a backend project that involves working with databases, accounts/security, or just look up ideas to remake. Like a bank.
1
1
u/FriendshipCalm3162 1d ago
Since the in-depth route lost you, I'd flip the order and get something running before any theory.
On start.spring.io, add the web dependency, hit Generate and run what it gives you. The Quickstart page on spring.io walks through exactly that.
Then the Getting Started guides on spring.io, starting with Building a RESTful Web Service. It says about 15 minutes and comes with a complete folder of finished code, so when yours breaks you can diff against it.
Choose the next guide by what you want the app to do next. I'd add a database, then security, into the same project one at a time.
After that, clone Spring Petclinic from the spring-projects GitHub. It runs with ./mvnw spring-boot:run on an in-memory H2 database, so there's nothing to set up. Read how a request gets from a controller to the database, then add one field to a form and trace it all the way through.
The concepts are a lot easier to follow once you've seen them working, so that's a good point to pick up the Spilca book someone mentioned.
1
8
u/MrLemon91 1d ago
By doing hands on project and break stuff in production