[RESOLVED]
Hi all,
My spring-config.xml
My first aspect :Code:<context:annotation-config /> <aop:aspectj-autoproxy /> <context:component-scan base-package="com.xyz.csi.core.aspect" />
The object is created by spring, but the @Aspect annotation seems to be not read.Code:@Component @Aspect public class ServiceSecurityAspect { /** Logger. */ private Log logger = LogFactory.getLog(this.getClass()); @Pointcut("bean(*Service)") public void checkUserLoginPointcut(){ logger.info("Check Service security"); } @Pointcut("execution(public * *(..))") public void anyPublicOperation(){ logger.info("anyPublicOperation"); } }
Any idea?
thanks.


Reply With Quote
