aop

Does Mojo's AspectJ Maven Plugin work with jdk 9+?

夙愿已清 提交于 2020-08-25 06:59:39
问题 I have a project that uses Mojo's AspectJ Maven Plugin. It works fine with jdk 8. When I try to switch to jdk14, the build fails with the following error: [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.11:compile (default) on project AspectJDemo: Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.11:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.11 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools

DelegatingDataSource Spring boot

最后都变了- 提交于 2020-08-10 20:12:57
问题 I am trying to implement Spring Boot AOP for data-source pointcut - where before running any query I need to set client context in DB connection. I was trying this approach of using DelegatingDataSource. But I am getting below error during server startup org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'dataSource': Requested bean is currently in creation: Is there an unresolvable circular reference? Please let me know DeletegatingDatasource

DelegatingDataSource Spring boot

Deadly 提交于 2020-08-10 20:12:56
问题 I am trying to implement Spring Boot AOP for data-source pointcut - where before running any query I need to set client context in DB connection. I was trying this approach of using DelegatingDataSource. But I am getting below error during server startup org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'dataSource': Requested bean is currently in creation: Is there an unresolvable circular reference? Please let me know DeletegatingDatasource