Spring Boot 3.0 集成 Mybatis-Plus 3.5.5
报错问题
19:19:19.511 [http-nio-9200-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,175] - Servlet.service() for servlet [dispatcherServlet] in context with path [/user] threw exception [Request processing failed: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: can not execute. because can not find cache of TableInfo for entity!] with root cause
com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: can not execute. because can not find cache of TableInfo for entity!
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.service.impl.ServiceImpl.saveOrUpdate(ServiceImpl.java:202)
at com.kieslect.user.service.impl.UserInfoServiceImpl.register(UserInfoServiceImpl.java:35)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

文章描述了在SpringBoot3.0项目中集成Mybatis-Plus3.5.5时遇到的错误,主要问题是由于无法找到实体的TableInfo缓存,提供了解决方案涉及的依赖调整。
最低0.47元/天 解锁文章
8721

被折叠的 条评论
为什么被折叠?



