【Spring】Spring开发准备

来源:互联网 发布:七星彩规律软件 编辑:程序博客网 时间:2024/06/03 16:43

1.首先下载并引入对应核心jar包

源码, jar文件:spring-framework-3.2.5.RELEASE

commons-logging-1.1.3.jar                     日志

spring-beans-3.2.5.RELEASE.jar           bean节点

spring-context-3.2.5.RELEASE.jar         spring上下文节点

spring-core-3.2.5.RELEASE.jar              spring核心功能

spring-expression-3.2.5.RELEASE.jar   spring表达式相关表


2.配置applicationContext.xml  / bean.xml

其中的约束文件可以到

spring-framework-3.2.5.RELEASE\docs\spring-framework-reference\htmlsingle\index.html中间的任意案例中找

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xmlns:p="http://www.springframework.org/schema/p"    xmlns:context="http://www.springframework.org/schema/context"    xsi:schemaLocation="        http://www.springframework.org/schema/beans        http://www.springframework.org/schema/beans/spring-beans.xsd        http://www.springframework.org/schema/context        http://www.springframework.org/schema/context/spring-context.xsd"></beans>

3.接下来就可以进行开发了



原创粉丝点击