zoukankan      html  css  js  c++  java
  • 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改成小写,解决问题

  • 相关阅读:
    es6类
    ES6模块化
    es6之常/变量
    es6之结构赋值
    es6之箭头函数、rest函数
    es6的新方法
    数组的使用方法
    Vue接口调用问题
    监听器和计算属性
    Vue路由
  • 原文地址:https://www.cnblogs.com/jsfh/p/13495126.html
Copyright © 2011-2022 走看看