Building Microservices with Spring
上QQ阅读APP看书,第一时间看更新

Dependency injection pattern with XML-based configuration

Spring provides dependency injection with XML-based configuration from the very beginning. It is the primary way of configuring a Spring application. According to me, every developer should have an understanding of how to use XML with a Spring application. In this section, I am going to explain the same example as discussed in the previous section of Java-based configuration with reference to XML-based configuration.