common utility aspects to use when creating systems with [spring-aop]
Questions tagged [spring-aspects]
129 questions
0
votes
1 answer
problems with Native AspectJ with Spring
I am testing AspectJ compile time weaving with Spring 4 (once I get it to work, I want to use it in my projects). I have the following service class:
@Service
public class HelloService {
public String sayHello(){
return…

Jigish
- 1,764
- 1
- 15
- 20
0
votes
0 answers
Losing autowired attributes after executed the interceptor from Spring AOP
After a lot of time waste trying to find a answer, I decided to post this doubt.
I have a class that I would like to intercept by the Spring AOP.
ObjectToBeProxied.java
package com.ee.beans;
@Service
@Component
@Transactional
public…

heber gentilin
- 155
- 13
0
votes
0 answers
Spring 4.1.x breaks Eclipse compilation with AspectJ and spring-aspects
I have a setup using Eclipse, AspectJ and Spring with compile time weaving. I've been using this for years without issues.
After upgrading from Spring 4.0.7 to 4.1.0 (or 4.1.1), there are no classes produced in the /target folder.
This problem…

Eduardo
- 66
- 5
0
votes
2 answers
Rest + Spring AOP + interface doesn't inject
I have a Spring AOP aspect used for logging, where a method can be included for logging by adding an annotation to it, like this:
@AspectLogging("do something")
public void doSomething() {
...
}
I've been using this on Spring beans and it's…

Tobb
- 11,850
- 6
- 52
- 77
-1
votes
1 answer
How to get the updated/modified HttpServletRequest object from AOP @Before advice to Spring controller method
I used Spring AOP @Before advice in Spring boot application, and it should execute before hitting any api's.
My task/requirement :- If in the request header application-name is not passed then we should modify the header and add to 'unknown' value…

Anil Nivargi
- 1,473
- 3
- 27
- 34
-1
votes
1 answer
Why my @Aspect is not recognized by my SpringBoot Application?
I want to test the AOP with spring boot, hence I imported this dependency in my
pom.xml
org.springframework.boot
spring-boot-starter-aop
Then i created…

jozinho22
- 459
- 2
- 7
- 24
-1
votes
1 answer
Spring aspect for crosscutting process pipeline usage
I want to use spring aspect for my crosscutting process like a before or after handler in my process execution lifetime.
For example
What I want before a method I want to execute my handler and due to its response I want to finialize myprocess and…

Bilgehan
- 1,135
- 1
- 14
- 41
-2
votes
1 answer
Custom annotation issue?
Annotation
@Target(ElementType.METHOD) // Annotation can be applied to methods
@Retention(RetentionPolicy.RUNTIME) // Annotation will be retained at runtime
public @interface MethodExecutionTime {
}
Aspect class
@Aspect
@Component
public class…

Ansh Gupta
- 1
- 2