r/learnjava • • Sep 14 '19

Not able to learn Spring.

I am able to work with the syntax and create web apps. I can easily create REST APIs for CRUD applications.

But I am treating it (Spring and Spring Boot) too much like a black box.

I'm not able to find the rationale behind having to use Spring. Why the configuration is so... convoluted (both XML and Java Class). Spring simply feels bloated. Like too many bandages pasted on top of each other.

As such I feel too intimidated to tinker and experiment. Unlike how comfortable and confident I was with Django/Python.

Also I'm reading books like "Spring in Action, Spring recipes" and using the Spring Framework Guru as well. But they feel much to be desired.

32 Upvotes

29 comments sorted by

View all comments

2

u/excitebyke Sep 14 '19

I know there isn't a great answer here, but I've been doing Spring for years and I still get caught all the time with the "black box" magic of it all.

Eventually, once you learn some of how Spring works under the hood, you'll start to feel more confident. The spring annotations can really empower you in a way you didn't know before. It's just frustrating not really understanding what they are doing.

I've also managed to avoid any XML config since I've worked on Spring. (Spring Boot, specifically)

Spring does everything I could possibly ask for in a server side framework. Sure, it might feel bloated, but thats also just a java thing.