![Building Microservices with Spring](https://wfqqreader-1252317822.image.myqcloud.com/cover/86/36699086/b_36699086.jpg)
上QQ阅读APP看书,第一时间看更新
Dependency injection pattern with Java-based configuration
As of Spring 3.0, it provides a Java-based Spring configuration to wire the Spring beans. Take a look at the following Java configuration class (AppConfig.java) to define the Spring bean and their dependencies. The Java-based configuration for dependency injection is a better choice, because it is more powerful and type-safe.