在开发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.4 KB
分享到:
相关推荐
Name salesDataSource is not bound in this Context,连接池的问题
配置tomcat7sqlserver数据连接池java 利用数据源对象建立数据库连接时的错误: Name jdbc is not bound in this Context 解决方案
No Hibernate Session bound to thread,没有绑定线程解决办法,找了好久才找到的
UIUC Math 482: Linear Programming. Lecture 33: The Branch-and-Bound Method(课程讲义)
今天在处理bug的时候发现某一个很奇怪的问题,在执行某类操作的时候会报:Invalid parameter number: no parameters were bound,但是该问题在本地或是测试机上测试都没有重现,猜想是否和版本有关,于是就google了...
集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...
Competitive Programming 3 The New Lower Bound of Programming Contests
这是每一个有竞争力的程序员都必须阅读和掌握的书,至少在他们编程生涯的中期。
搭建项目时使用了mybatisplus,项目能够正常启动,但在调用mapper方法查询数据库时报Invalid bound statement (not found)错误。本文给大家分享解决方案,感兴趣的朋友跟随小编一起看看吧
Written by Canon Explorer of Light Rick Sammon and leading fashion and studio photographer Vered Koshlano, this guide is packed with professional advice on the essential element of photography: ...
Written by Canon Explorer of Light Rick Sammon and leading fashion and studio photographer Vered Koshlano, this guide is packed with professional advice on the essential element of photography: ...
主要介绍了MyBatis绑定错误提示BindingException:Invalid bound statement (not found)的解决办法,非常不错,具有参考借鉴价值,需要的的朋友参考下吧
Thrust is a CUDA library of parallel algorithms with an interface resembling the C++ Standard Template Library (STL). Thrust provides a flexible high-level interface for GPU programming that greatly ...
The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e.g., for accessors and mutators. The -inl.h Files...
The Lipschitz Continuous Global Optimizer LGO solver suite serves for the analysis and global solution of general nonlinear programming NLP models The LGO solver system has been developed and ...
This is the CRB caculated for an OFDM system to compair belind channel estimation. CRB is Cramer Rao bound and it is the lowest bound for analyzing the devlopement of algorithms of channel estimation.
Even though the comparison of different Kubernetes platforms is not the primary scope of the book, I'll do my best to explain the differences as they come. To summarize the guidelines, it explores ...
population is wheelchair-bound, the strain of travel is such that more than twice that amount relies on wheelchairs in airports [Haseltine Systems Corp. 2006]. Two issues have the greatest impact on ...