您的位置:首页 > 编程语言 > Java开发

转发下Spring英文文档 学习编程English也要学好 因为要看原版的英文文档

2016-05-24 15:57 387 查看


学习编程English也要学好 因为要看原版的英文文档



The Core package
is the most fundamental part of the framework and provides the IoC and Dependency Injection features. The basic concept here is the BeanFactory, which provides
a sophisticated implementation of the factory pattern which removes the need for programmatic singletons and allows you to decouple the configuration and specification of dependencies from your actual program logic.

The Context package
build on the solid base provided by the Core package:
it provides a way to access objects in a framework-style manner in a fashion somewhat reminiscent of a JNDI-registry. The context package inherits its features from the beans package and adds support for internationalization (I18N) (using for example resource
bundles), event-propagation, resource-loading, and the transparent creation of contexts by, for example, a servlet container.

The DAO package
provides a JDBC-abstraction layer that removes the need to do tedious JDBC coding and parsing of database-vendor specific error codes. Also, theJDBC package
provides a way to do programmatic as well as declarative transaction management, not only for classes implementing special interfaces, but for all your POJOs (plain old Java objects).

The ORM package
provides integration layers for popular object-relational mapping APIs, including JPA, JDO, Hibernate,
and iBatis.
Using the ORM package you can use all those O/R-mappers in combination with all the other features Spring offers, such as the simple declarative transaction management feature mentioned previously.

Spring's AOP package
provides an AOP Alliance-compliant aspect-oriented programming implementation allowing you to define, for example, method-interceptors and pointcuts to cleanly decouple code implementing functionality that should logically
speaking be separated. Using source-level metadata functionality you can also incorporate all kinds of behavioral information into your code, in a manner similar to that of .NET attributes.

Spring's Web package provides basic web-oriented integration features, such as multipart file-upload functionality, the initialization of the IoC container using servlet listeners and a web-oriented application context.
When using Spring together with WebWork or Struts, this is the package to integrate with.

Spring's MVC package
provides a Model-View-Controller (MVC) implementation for web-applications. Spring's MVC framework is not just any old implementation; it provides a clean separation between domain model code and web forms, and allows
you to use all the other features of the Spring Framework.

个人感悟:编程讲究 强内聚 弱耦合

同一个模块内各元素的联系要紧密  不同模块之间的联系要尽量独立

打个比方 一个程序有100个函数 这个程序执行的非常好 如果你修改了其中一个剩下99都需修改 这就是强耦合了 不赞同哦  生活中很多事情也一样哦

方法掌握了就要开始记jdk 和各大框架的API 里面的成语 及成语里面的典故 尽量多记哦!这样子写美文才会得心应手 去公司干活 尽量抢着干哦 实践出真理哦 干到后面 因为 老板的原因 那大家都是相互的哦  老板人好尽量给他优美的散文写一下 反之自己看着办......
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息