News for hackers. Stuff that matters.
Re:Spring vs. Java EE by jacques_chester on Sunday April 09, 2017 @08:52PM (#14075221)
If you're firm on constructor injection, you can typically test the object in complete isolation without necessarily using mocks, without Spring having to be involved.

Or you can use mocks and Spring Boot's test annotations.

But with field/setter injection, that choice isn't as easy.

There are no comments on this comment yet.