Spring 笔记一

1、什么是框架?

  框架,是一种半成品的软件,是高度抽取可重用代码的一种设计,多个可重用模块的集合,形成某个领域的整体解决方案。

2、Spring 框架

  概述:Spring 是一个开源框架,一个容器框架,核心是 IOC 和 AOP

  Spring 模块划分图:

     

  Test:Spring 的单元测试模块。

  spring-test-4.0.0.RELEASE

  Core  Container:核心模块(IOC),黑色代表这部分功能由哪些 jar 包组成,要使用这个部分的完成内容,这些 jar 包都需要导入。

  spring-beans-4.0.0.RELEASE、spring-core-4.0.0.RELEASE、spring-context-4.0.0.RELEASE、spring-expression-4.0.0.RELEASE

  AOP + Aspects:面向切面编程模块。

  spring-aop-4.0.0.RELEASE、spring-aspects-4.0.0.RELEASE

  Data Access/Integration:数据访问/集成模块。

  spring-jdbc-4.0.0.RELEASE、spring-orm-4.0.0.RELEASE(Object Relation Mapping:对象关系映射)、spring-oxm-4.0.0.RELEASE(XML)、spring-jms-4.0.0.RELEASE(Intergration)、spring-tx-4.0.0.RELEASE(事务)

  Web:Spring 开发 Web 应用模块。

  spring-websocket-4.0.0.RELEASE  (新的技术)

  spring-web-4.0.0.RELEASE、    (和原生的Web相关)

  spring-webmvc-4.0.0.RELEASE、    (开发Web项目的)

  spring-webmvc-portlet-4.0.0.RELEASE  (开发Web应用的组件集成)

  每个模块相对独立,建议用哪个模块导入对应的包。

3、开发工具配置

  开发Spring框架的应用,经常要写框架的配置文件,可以给 Eclipse 装插件增加提示功能。
  Eclipse 装插件步骤:
    1. 查看当前版本
    Help——About Eclipse——点对应的图标
    

    

    当前版本是4.3.2,插件可以装4.3.1。

    2. 选择对应的插件

     

    3. 安装插件

    Help——Install New Software

    

  

     4.安装成功的标志

    

4、Eclipse 的其他配置

  1. 字体

    General——Appearance——Colors and Fonts——Basic——Text Font

  2.字符集

    General——Workspace

  3.编译级别

    General——Java——Compiler——默认1.4改为1.7。  

  

原文地址:https://www.cnblogs.com/_Moliao/p/13441235.html