国外2012年用的spring,感觉和2020年的都还挺像:) 链接:https://blog.codecentric.de/en/2012/07/spring-dependency-injection-styles-why-i-love-java-based-configuration/