2012-08-07 2 views
1

모든 컴파일하지만, 이러한 경고가 표시됩니다 스프링 MVC 프로젝트 컴파일 경고

Warning: advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] 

Warning: advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] 

Warning: advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch] 

Warning: advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch] 

누군가가 설명 할 수

는 정확히 무슨 뜻?

답변

4

이것은 컴파일 타임 AspectJ 제직 프로세스의 출력입니다. 이것은 코드베이스에 적용되지 않은 AspectJ 조언을 보여줍니다.

스프링 관련 aspect는 일반적으로 spring-aspects.jar 파일의 META-INF/aop.xml 파일에 정의되어 있으며, 이러한 aspect는 코드베이스에서 일치하는 pointcut에 기반하여 클래스에 짜 넣어진다. if 어떤 포인트 컷이 일치하지 않습니다. 예를 들어 어딘가에 @Async 주석이 없을 경우, 조언이 적용되지 않고 advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied

+0

을 볼 수 있습니다. 고맙습니다! –