cterse / TrainingDemo

MIT License
0 stars 0 forks source link

Spring Field vs. Constructor vs. Setter Injection #9

Open cterse opened 5 years ago

cterse commented 5 years ago

We are using field injection for now. But IntelliJ Idea inspector suggests to not use field injection and use constructor injection instead.

Research about this, and perform code refactoring wherever needed.

cterse commented 5 years ago

https://www.vojtechruzicka.com/field-dependency-injection-considered-harmful/

Good article on comparison of the 3 dependency injection types.