Top "Spring-aop" questions

Spring AOP is the Spring Framework's version of AOP, implemented in pure Java and using the @AspectJ annotations from the AspectJ project.

Is Spring @autowired not meant for non-singleton containers?

I have a MyTask class which implements Runnable and there can be many such objects instantiated at any given moment. …

spring singleton spring-aop autowired
Exception java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect

I recently started working on AspectJ and wrote a simple Aspect for Logging. I have defined below dependencies into my …

java spring aop aspectj spring-aop
Spring AOP Pointcut syntax for AND, OR and NOT

I'm having trouble with a pointcut definition in Spring (version 2.5.6). I'm trying to intercept all method calls to a class, …

spring aop spring-aop
Failed to load Spring ApplicationContext

I'm writing unit tests for a spring application which is sort of complex. I want to load spring context in …

spring maven junit spring-aop applicationcontext
@AspectJ pointcut for all methods inside package

I have this working code for a specific package, but i want to configure it for all controllers, service and …

java spring aop aspectj spring-aop
Joinpoint VS ProceedingJoinPoint in AOP using aspectJ?

Can any one tell me what is the difference between Joinpoint and Proceedingjoinpoint? When to use Joinpoint and Proceedingjoinpoint in …

java spring aspectj spring-aop
AspectJ expression gives formal unbound in pointcut error

I have within aspectJ the expression: @Pointcut("within(com.param.cpms.dao.impl.ProjectMetaDaoImpl)") public void daoExceptionHandle() { } At Spring 3.0 startup, …

java spring spring-aop pointcut
Why doesn't AspectJ compile-time weaving of Spring's @Configurable work?

Update 5: I've downloaded the latest Spring ToolsSuite IDE based on the latest Eclipse. When I import my project as a …

java maven aop spring-aop compile-time-weaving
Can not set field to com.sun.proxy.$Proxy

For file upload I am trying to inject and use a Validator in my Spring Controller like this: @RestController @RequestMapping("/…

java spring spring-mvc spring-boot spring-aop
Spring AOP - why do i need aspectjweaver?

i wrote a very simple Aspect with Spring AOP. It works, but i have some problems understanding what is really …

java spring aop aspectj spring-aop