Reputation: 1
I have 1 spring boot project which defines the Aspect to be called if exception is thrown. I have another spring boot project where that Aspect should be applied. But it seems that aspect is not working when exception is thrown.
Git repository link: https://github.com/ketss/Spring-Boot-Aspect
2 projects on 2 different branches.
master1: Dependency spring boot project which contains Aspect
master2: Main application
Can someone tell me what exactly am I missing?
Upvotes: 0
Views: 292
Reputation: 33
You forgot to annotate your ExceptionProcessorAspect class with @Configuration.
I believe you should paste @Configuration above @Aspect Annotation.
Upvotes: 1