Spring application has Cglib2AopProxy warnings

后端 未结 4 660
夕颜
夕颜 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:29

    You should use interfaces for dependency injection, the most reasons for this are described here and here.

    You can read documentation about proxying mechanic for details why you see this warning.

    And please vote for feature request of inspection for IntelliJ that may helps us to avoid this warnings. BTW It also contains a good explanation.

提交回复
热议问题