Spring application has Cglib2AopProxy warnings

后端 未结 4 663
夕颜
夕颜 2020-12-28 17:26

Upon starting my application, I get numerous warnings along the lines of o.s.aop.framework.Cglib2AopProxy \'Unable to proxy method [public final void org.springframewo

4条回答
  •  情深已故
    2020-12-28 18:15

    Spring Boot now uses CGLIB proxying by default, including for the AOP support. If you need interface-based proxy, you’ll need to set the spring.aop.proxy-target-class to false.

    spring.aop.proxy-target-class=false

提交回复
热议问题