Re:A Picture of Java in 2020
by lmm on Wednesday September 23, 2020 @03:28AM
(#24564054)
The point is you don't have to write the Spring configuration (except in the rare cases where you need to override with something specific). Just mark each class's constructor as @Autowired, make an AnnotationConfiguredApplicationContext passing the list of all your classes, and you don't have to manually keep track of which services need which other services - Spring takes care of instantiating everything in order and passing dependencies into the things that need them.
[ Parent
| on HN ]
There are no comments on this comment yet.