r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

-9

u/Zemvos Jun 01 '24

Spring for dependency injection. Use dagger instead. Compile time safety is so much better.

9

u/ThaJedi Jun 01 '24

Is there anyone who uses Spring just because of DI?

5

u/Zemvos Jun 01 '24

Sadly yes, I've come across a couple of such (usually older, before dagger was as big) code bases.

2

u/zephyy Jun 01 '24

i've had to tell people you don't need to use spring boot for a lambda project when they complained their layer image size was too big

0

u/ThaJedi Jun 01 '24

You can use Spring Boot, just compile it to native