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改成小寫,解決問題