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

Spring完整的约束配置代码

2017-03-10 21:56 211 查看
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/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 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
</beans>
也可以直接下载我上传的完整约束配置文件的模板,下载地址: http://download.csdn.net/detail/maoyuanming0806/9777369
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  javaweb spring 框架 bean aop
相关文章推荐