Following are the benefits offered by the Spring Framework.
• It is possible to develop enterprise level application in Spring using POJOS. The major benefit of using POJO is that you can avoid EJB container like application server. In such cases you just need to use a web server like Tomcat or any other commercial product.
• A modular style is used to organize Spring. There are lot of packages and classes but you must only consider the classes being used by you.
• The spring
Because of its properties, a DataSource object is a better alternative than the DriverManager class for getting a connection. Programmers no longer have to hard code the driver name or JDBC URL in their applications, which makes them more portable. Also, DataSource properties make maintaining code much simpler. If there is a change, the system administrator can update data source properties and not be concerned about changing every application that makes a connection to the data source. For example,
A DataSource object is considered a good alternative of class “DriverManager” and is most preferable to be used as it creates a database connection. There is no need to hard code the JDBC URL or driver name in application while using DataSource object. Such approach is loosely coupled & more portable.
When there is a need to do alterations then changes might be done in properties file by the admin and no code changes of ever application is needed, which is involved in its implementation.