AOP는 메소드 유사한 컷 솔루션을 호출 할 수 없습니다

질문 : AOP는 클래스의 모든 방법을 절단하는 경우에만 최 외층 방법을 향상이 클래스의 각 메소드를 호출 방법은 향상된 호출되지 않습니다

다음과 같은 해결 방법은 다음과 같습니다

봄 부팅의 버전 또는 이전 버전을 1.spring

용액은 applicationContext.xml에 조각을 추가하는 < AOP : AspectJ를 autoproxy-  "참"= 프록시 목표 클래스 에 노출 = -proxy "참" /> 

<? XML 버젼 = "1.0"인코딩 = "UTF-8" ?> 
< 의 xmlns = "http://www.springframework.org/schema/beans" 
       의 xmlns :이 xsi = "http://www.w3.org/2001 / 된 XMLSchema 인스턴스 " 
       XMLNS : AOP ="http://www.springframework.org/schema/aop " 
       XSI :의 schemaLocation ="http://www.springframework.org/schema/beans 
           HTTP : //www.springframework. 조직 / 스키마 / 콩 / 봄 콩 - 3.0.xsd 
           http://www.springframework.org/schema/aop 
           http://www.springframework.org/schema/aop/spring-aop-3.0.xsd " > 
 
    < AOP : AspectJ를-자동 프록시 프록시 대상 클래스 = "/> 
 
</ >

2.spring 부트 버전

추가 ApplicationMain 시작 클래스 @EnableAspectJAutoProxy (지정된 proxyTargetClass = 사실, exposeProxy = TRUE)

추천

출처www.cnblogs.com/lzj123/p/11542539.html