|
|
|
|
|
by throwaway97135
1731 days ago
|
|
The code base at work has 100s of thousands of lines in several services based on Spring Boot. There's not a single factory in our code. We also do not use XML to configure DI. Just add a annotation to a class and you can inject it automatically in any constructor without any additional config/annotations. If this is too much "magic" for someone's taste, I will not argue even if I have a different view. But please do not make absolute statements based on a bad experience in some companies. Modern Java and frameworks have evolved a lot in recent years. |
|
I understand the need for DI, sometimes the order of instantiation is necessary but for everything else I get lost in the DI constructor injection stuff.