Three framework development, spring configuration file Org.springframework.transaction.interceptor.TransactionInterceptor.invoke exception

Source: Internet
Author: User
In the recent project development using three frameworks, a two-way Orange arrow appears in the Spring configuration file, which will prompt you advised by
Org.springframework.transaction.interceptor.TransactionInterceptor.invoke ( Org.aopalliance.intercept.MethodInvocation) exception, prompting spring transaction management exception, after my exploration, finally solved the problem, because I use the three framework of annotations development, Configure global package scan in spring config file <context:component-scan base-package= "My package name" ></CONTEXT:COMPONENT-SCAN> Hint is the exception of this, the solution is actually very simple, just need to add a use-default-filters= after this sentence "false" > on it, to become <context:component-scan base-package= "My Package name" use-default-filters= "false" ></context:component-scan>, so the two-way arrow disappears and the exception disappears.

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.