The prefix "tx" for element "tx:advice" is not bound 错误的说明
来源:互联网 发布:铝型材计算公软件 编辑:程序博客网 时间:2024/05/09 13:54
在开发Spring的过程中,有时会出现Eclipse不能识别<tx:advice/>标签。
1.提示出现以下错误:
这个错误的原因是:我们在定义申明AOP的时候,没有加载schema。
2.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:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
红色标记的内容是需要添加的内容,添加之后Eclipse就能够识别<tx:advice/>,<aop:config/>
标签了。
3.解释一下(* com.evan.crm.service.*.*(..))中几个通配符的含义:
第一个 * —— 通配 任意返回值类型
第二个 * —— 通配 包com.evan.crm.service下的任意class
第三个 * —— 通配 包com.evan.crm.service下的任意class的任意方法
第四个 .. —— 通配 方法可以有0个或多个参数
所以(* com.evan.crm.service.*.*(..))匹配:包com.evan.crm.service下的任意class的具有任意返回值类型、任意数目参数和任意名称的方法。
1.提示出现以下错误:
这个错误的原因是:我们在定义申明AOP的时候,没有加载schema。
2.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:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
红色标记的内容是需要添加的内容,添加之后Eclipse就能够识别<tx:advice/>,<aop:config/>
标签了。
3.解释一下(* com.evan.crm.service.*.*(..))中几个通配符的含义:
第一个 * —— 通配 任意返回值类型
第二个 * —— 通配 包com.evan.crm.service下的任意class
第三个 * —— 通配 包com.evan.crm.service下的任意class的任意方法
第四个 .. —— 通配 方法可以有0个或多个参数
所以(* com.evan.crm.service.*.*(..))匹配:包com.evan.crm.service下的任意class的具有任意返回值类型、任意数目参数和任意名称的方法。
0 0
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound.
- The prefix "tx" for element "tx:advice" is not bound
- The prefix "tx" for element "tx:annotation-driven " is not bound The prefix "tx" for element "tx:ann
- the prefix "tx" for element "tx:annotation-driven" is not bound
- 关于spring配置中the prefix "tx" for element "tx:annotation-driven" is not bound 问题的处理
- The prefix "tx" for element "tx:annotation-driven" is not bound. ssm配置事物切面报错
- Spring框架应用时,报"tx:advice" is not bound的错误
- aop advisor说明以及The prefix "aop" for element "aop:config" is not bound.错误原因
- 错误提示:The prefix "aop" for element "aop:config" is not bound.
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- java错误-The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- TI DSP TMS320C66x学习笔记之VLIB测试数据(三)
- PHP环境配置小细节
- android流量测试的指导方法
- 安卓日记——http中的get和post方法
- 黑马程序员——StringBuffer类
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- django 连接sqlserver总是出错,以及怎样使用django-mssql连接sql server2008数据库。
- 查看tomcat内存使用情况
- 条件编译的其他用法
- mongodb 在mac 系统上安装
- 杭州电子科技大学计算机学院大学生程序设计竞赛(2015'12)
- Git学习笔录
- Android:layout_gravity 属性和 gravity属性
- LeetCode之Linked List题目汇总