4 ms·
FWIW, the Spring team fairly emphatically advise against anything but constructor injection[0], to the point that a major feature of Spring Framework 5 was to r
by jacques_chester 9y ago
FWIW, the Spring team fairly emphatically advise against anything but constructor injection[0], to the point that a major feature of Spring Framework 5 was to rework the code to be exclusively constructor injected[1].
[0] http://olivergierke.de/2013/11/why-field-injection-is-evil/ http://olivergierke.de/2013/11/why-field-injection-is-evil/
[1] https://github.com/spring-projects/spring-framework/wiki/What%27s-New-in-Spring-Framework-5.x#general-core-revision https://github.com/spring-projects/spring-framework/wiki/Wha...