SpringIs a powerfulJava applicationsFramework, which is widely used in Java applications and provides enterprise-level services for plain old Java objects (pojo. Spring uses the dependency injection mechanism to simplify work and improve testability. The configuration file (usually in XML format) specifies spring bean, dependencies, and services required by bean. However, these xml configuration files are lengthy and not practical. It is difficult to read and manage large projects that need to define a large number of spring beans.
In this article, I will show you 12 best practices for spring xml configuration. Some of these practices are more necessary than best practices. Note that other factors (such as setting the domain model) may also affect the xml configuration, but this article focuses on the readability and manageability of xml configuration.
Read: http://www.javah.net/Spring/20070522/1764.html