Spring完整的约束配置代码

来源:互联网 发布:手机淘宝天猫 编辑:程序博客网 时间:2024/06/05 09:47

Spring框架使用到的配置文件的完整约束代码如下:

包括bean、context、aop、tx等,可以完美使用各种功能

记得导入spring对应功能的包哦,这些约束是没问题的


<?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:context="http://www.springframework.org/schema/context"xmlns:aop="http://www.springframework.org/schema/aop"xmlns:tx="http://www.springframework.org/schema/tx"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx.xsd"></beans>

也可以直接下载我上传的完整约束配置文件的模板,下载地址:

http://download.csdn.net/detail/maoyuanming0806/9777369


1 0
原创粉丝点击