Scenes
启动spring项目报错,提示:
The bean ‘userMxMapper’ could not be injected as a ‘com.test.UserMapper’ because it is a JDK dynamic proxy that implements:
solution
At first glance, there is a problem with the injection.
This situation generally occurs in the @Resource annotation used, and the variable name is written incorrectly, then this situation will occur.
Because @Resource defaults to byName injection.