Load time weaving for non-spring beans in a spring application

空扰寡人 提交于 2019-12-02 02:08:37

Use -javaagent:/path/to/aspectjweaver-<version>.jar as a startup argument to your JVM to enable load-time weaving. Remove @EnableAspectJAutoProxy from your spring configuration so that spring doesn't try to use it's own Spring AOP framework instead of pure AspectJ. Optionally, create META-INF/aop.xml. Add @EnableSpringConfigured if you want to apply spring configuration to beans not managed by spring (@Configurable POJOs).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!