4.6. Benefits and Drawbacks of Spring in Application Archives
Packaging the Spring libraries in application archives has its advantages as well as disadvantages.
Advantages
- Every application deployed on the server can use a different version of Spring
- Build scripts are simpler
- Packaged applications can be deployed on different server instances, that is, the target server is not required to be prepared for a specific deployment
Disadvantages
- Size of the application archive increases
- Memory usage is not efficient as classes common to all applications are loaded multiple times