issues
search
Jian-Min-Huang
/
tech-note
2
stars
0
forks
source link
Field injection is evil
#63
Open
Jian-Min-Huang
opened
4 years ago
Jian-Min-Huang
commented
4 years ago
http://olivergierke.de/2013/11/why-field-injection-is-evil/
field injection
less code to write
unsafe code
more complicated to test
constructor injection
safe code
more code to write (see the hint to Lombok)
easy to test
but spring test has good support of unit test