Error message: the prefix "AOP" for element "AOP: config" is not bound ..

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.