Skip to content

Commit

Permalink
Merge pull request #3558 from eryanwcp/master
Browse files Browse the repository at this point in the history
解决Spring Boot环境下AOP二次代理问题
  • Loading branch information
wenshao authored Jan 29, 2020
2 parents 5c14f97 + a49446a commit 18606b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public Advisor advisor(DruidStatProperties properties) {
}

@Bean
@ConditionalOnProperty(name = "spring.aop.auto",havingValue = "false")
public DefaultAdvisorAutoProxyCreator advisorAutoProxyCreator() {
DefaultAdvisorAutoProxyCreator advisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator();
advisorAutoProxyCreator.setProxyTargetClass(true);
Expand Down

0 comments on commit 18606b5

Please sign in to comment.