Error message: the prefix "AOP" for element "AOP: config" is not bound. the prefix "TX" for element "TX: advice" is not boundeclipse does not recognize the AOP label. The prompt is: the prefix "AOP" for element "AOP: config" is not bound.
If the <TX: advice/> label is not recognized, the following error occurs: the prefix "TX" for element "TX: advice" is not bound: We define AOP. No schema is loaded. Solution: load the jar package first.
Add the "xmlns: AOP" Naming statement to <beans> and specify the schema address configured by AOP in "xsi: schemalocation ".
The configuration file is as follows:
<? 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: 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/tx
Http://www.springframework.org/schema/tx/spring-tx.xsd
Http://www.springframework.org/schema/aop
Http://www.springframework.org/schema/aop/spring-aop.xsd>
These are the key points .. The subsequent configurations remain unchanged ....
I will explain the meanings of several wildcards in (* COM. Evan. CRM. Service:
First * -- any return value type for wildcard Configuration
The second * -- wildcard package any class under com. Evan. CRM. Service
Third * -- any method of any class under com. Evan. CRM. Service
The fourth. -- wildcard method can have 0 or more parameters.
To sum up, any class under com. Evan. CRM. Service has any return value type, any number of parameters, and any name.