本文主要是介绍Spring 理念,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Spring 的成功来源于理念,而不是技术,它最核心的理念就是IoC(控制反转)和AOP(面向切面编程),其中IoC是Spring的基础,而AOP则是其重要的功能,最为典型的当属数据库事务的使用。
那么Spring做到什么呢?
Rod Johnson(倡导者)当初的描述如下:
We believe that:
- J2EE should be easier to use.
- It is best to program to interfaces , rather than class.Spring reduces thr complexity cost of using interfaces to zero.
- JavaBean offers agreat way of configuring applications.
- OO design is more important than any imlemention technology , such a J2EE.
- Checked exceptions are overused in java. A platform should not force you to catch exceptions you are unlikely to recover from.
- Testability is essential and a platform such as spring should help make your code easier to test.
We aim that:
- Spring should be a pleasure to use.
- Your application codes should not depend on spring apis.
- Spring should not compete with good exsiting solutions, but should foster integration.
出自《Java EE 互联网轻量级框架整合开发》
这篇关于Spring 理念的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!