I had the same problem, it turned out that Spring AOP auto-proxing spends a lot of time loading booting classes using bcel (without caching, so loading the same classes again and again like java.lang.Object ...) when trying to figure out what tips apply. It can be improved somewhat by writing finer-grained Point abbreviations (use internally, for example, @within), but I found a solution that worked better if all your pointcuts were written using @annotation.
1) Deactivate auto proxy with: spring.aop.auto = false
2) AnnotationAwareAspectJAutoProxyCreator beans, , , :
@Override
protected Object[] getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource targetSource) {
if (beanClass != null && isInPackages(beansPackages, beanClass.getName()) && hasAspectAnnotation(beanClass)) {
return super.getAdvicesAndAdvisorsForBean(beanClass, beanName, targetSource);
} else {
return DO_NOT_PROXY;
}
}
60 15 .
, -