As explained @target(MyAnnotation) || @annotation(MyAnnotation)
hereMyAnnotation
I used only
to avoid proxy creation. Hope this helps
java.lang.IllegalArgumentException: Cannot subclass final class org.springframework.cloud.sleuth.log.Slf4jScopeDecorator
在Spring Boot AOP应用程序中,我有一个点阵图。. 在下列情况下应执行建议: MyAnnotation
被放在用此注解的执行对象或注解的方法上。
当我运行应用程序时,我得到
@MyAnnotation
@FeignClient(name="some-name", url="http://test.url")
public interface MyClient {
@RequestMapping(method = RequestMethod.GET, value = "/endpoint")
List<Store> getSomething();
}
一个类似的问题将被讨论
此处