i using spring
(4.2.1) aop @aspectj
style annotations , <aop:aspectj-autoproxy/>
.
i using aop
emailing, downloading, auditing, profiling. works fine except startup time of application continuously growing more aop being added.
here basic syntax , configuration used spring mvc project.
in applicationcontext.xml file <aop:aspectj-autoproxy/>
@component @aspect public class auditaddproduct { @before("@annotation(auditaddproductaccessaspect)") public void addproductaccessaspect(joinpoint joinpoint) { } }
if remove <aop:aspectj-autoproxy/>
applicationcontext file, server start in less 10 seconds, aop, took around 90 second 150 seconds. , looking purely way take load off of startup , memory requirements, , want make attempt migrate if worth effort.
could share me tips appreciated.
Comments
Post a Comment