-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spring boot (because it is a JDK dynamic proxy that implements) #666
Comments
a workaround is to add in your application.yml: javamelody:
advisor-auto-proxy-creator-enabled: false and to add in your pom.xml (if you don't already have that dependency): <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency> I think that I should add a note about advisor-auto-proxy-creator-enabled in the doc |
doc updated at the end of the Integration chapter. |
hi. the project use spring cloud feign api ,the controller mapping is not work when dependency javamelody-spring-boot-starter. because of javamelody auto proxy. javamelody:
advisor-auto-proxy-creator-enabled: false it work .thx for the issue . |
add this configuration spring.aop.proxy-target-class=true in the application.properties file! |
1.gradle
4.start spring boot
The bean 'xxxService' could not be injected as a 'com.xxx.service.xxxService' because it is a JDK dynamic proxy that implements:
Action:
Consider injecting the bean as one of its interfaces or forcing the use of CGLib-based proxies by setting proxyTargetClass=true on @EnableAsync and/or @EnableCaching.
The text was updated successfully, but these errors were encountered: