Cannot execute table Method, ClassGenricType not found .解决过程

先说错误日志

com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Cannot execute table Method, ClassGenricType not found .
	at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:49)
	at com.baomidou.mybatisplus.core.toolkit.Assert.isTrue(Assert.java:38)
	at com.baomidou.mybatisplus.core.toolkit.Assert.notNull(Assert.java:72)
	at com.baomidou.mybatisplus.extension.toolkit.SqlHelper.table(SqlHelper.java:86)
	at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.sqlStatement(ServiceImpl.java:104)
	at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.updateBatchById(ServiceImpl.java:224)
	at com.baomidou.mybatisplus.extension.service.IService.updateBatchById(IService.java:146)
	at com.cmes.ibiz.server.impl.bigdata.TcFixtureServiceImpl.fullUpdate(TcFixtureServiceImpl.java:165)
	at com.cmes.ibiz.server.impl.bigdata.TcFixtureServiceImpl$$FastClassBySpringCGLIB$$9bb41b9d.invoke()
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:685)

原因: 引入了baseSerive 封装了mybtisplus的ServiceImpl,执行批量更新操作的时候,cglib找不到对应的实现mapper

下级子类

Cannot execute table Method, ClassGenricType not found .解决过程_第1张图片

基础类

解决方式:

基础类把对应的mapper实现类M,也传进去,即可解决。

Cannot execute table Method, ClassGenricType not found .解决过程_第2张图片

 

你可能感兴趣的:(java,java,bug)