Spring core ---
Use DI (Dependency injection) not DL (Dependency lookup):
The use of dependency lookup creates coupling to concrete classes, which goes against the purpose of IoC, namely to remove dependencies to concrete classes. So to some up, don't use dependency lookup, ever!
example:
Harder to test.
Only use autowire, on projects with a low number of beans.
By-type constructor....


No comments:
Post a Comment