om.baomidou.mybatisplus.core.exceptions.MybatisPlusException: 该模式不能应用于非数据库字段!

2020-08-13 10:51:57.456 ERROR 2064 --- [nio-7772-exec-8] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew.sqlSegment != null and ew.sqlSegment != '' and ew.notEmptyOfWhere'. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: 该模式不能应用于非数据库字段!]] with root cause

com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: 该模式不能应用于非数据库字段!

 

 执行到这里时,报了上面的错误,看了下数据库,确实存在F_MID这个字段

可是它为什么提示:该模式不能应用于非数据库字段!

再看看我字段咋定义的

 

 乍一看,没错啊

后面试了试修改字段,原来mybatis-plus字段首字母不能大写,大写的话get和set方法会发生冲突,最后将M改成小写,解决问题

 

posted @ 2020-08-13 10:58  旧时繁华  阅读(4517)  评论(0编辑  收藏  举报