在创建service的时候不小心将接口类放在了@MapperScan的扫描路径内,随即MybatisMapperProxy代理了这个类,导致注入出现问题,将service移出扫描路径就好啦。
实现org.apache.ibatis.plugin.Interceptor接口的类中使用@Autowired注入service为null
最新推荐文章于 2023-06-17 16:16:11 发布
在创建service的时候不小心将接口类放在了@MapperScan的扫描路径内,随即MybatisMapperProxy代理了这个类,导致注入出现问题,将service移出扫描路径就好啦。