简体   繁体   中英

Need to explain Spring benefit

I'm a new Spring. So i've one thing that need to you explain. i read benefits of Spring framework here and i got this:

Spring enables developers to develop enterprise-class applications using POJOs. The benefit of using only POJOs is that you do not need an EJB container product such as an application server but you have the option of using only a robust servlet container such as Tomcat or some commercial product.

i can't understand why if we use POJO, we do not need an EJB container and just only use a servlet container instead. Someone can make clearly that benefit for me! Thank so much! Sorry about my English, it's not good!

POJO – Stands for Plain Old Java Objects. In short plain Objects that meets the java beans requirements. See What is a JavaBean exactly? .

So to use POJOs you just need java (JRE/JDK). If you want Servlet API you add Tomcat etc.

Spring will provide almost all EJB functionality in one way or other but in a more simplified way (and better from my point of view).

For example JPA abstraction using Hibernate or other ORM solution.

As the tutorial say

Spring does not reinvent the wheel instead, it truly makes use of some of the existing technologies like several ORM frameworks, logging frameworks, Java EE, Quartz and JDK timers, other view technologies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM