r/learnjava • • Mar 21 '21

Learning backend development

I have more than 6 years of experience with working in Java and 2 years in kotlin as I mostly work on android professionally, I had done a course on udemy for spring boot and understood what's happening but there was a gap where spring boot seemed like a black box where you annotate and work is done by spring, can some suggest a way to learn backend where I learn fundamentals and how things work rather some magical annotations. I am open to online courses, books, blogs whatever I can get my hands on to learn the fundamental and how things work under the hood in spring.

Any help is appreciated, thank you.

42 Upvotes

16 comments sorted by

View all comments

0

u/smash_that_code Mar 21 '21

If I u dersyood right then the question ia about ides behind framework like SpeingBoot. And how it does its magic.

There is an approach called dependency injection. The main thing is to give away (some) object creation to thing called... container.

These objects are usually called components, services, configurations and repositories.

The trick is that when container starts it check all the marked classes and tries to create instances of them, usually injecting constructor arguments from its... context.

And the magic part is that you can have some auto-configurations that setup servlet thing, or connection to db. So that container context has not only your objects but all the stuff for security, web, persistence and what you added to it.

I suppose this info should be part of any decent springboot course.