首页 > 数据库 >Mybatisplus自动生成SQL语句变成下划线

Mybatisplus自动生成SQL语句变成下划线

时间:2022-12-14 16:47:26浏览次数:47  
标签:java 下划线 Unknown sql SQL mybatis Mybatisplus ###

### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'l_o_g_i_n_n_a_m_e' in 'field list'
### The error may exist in com/rqzx/api/dao/U_USERMapper.java (best guess)
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT ID AS ID,l_o_g_i_n_n_a_m_e,t_r_u_e_n_a_m_e,p_h_o_n_e,e_m_a_i_l,p_w_d,s_t_a_t_u_s FROM u_user
### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'l_o_g_i_n_n_a_m_e' in 'field list'
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'l_o_g_i_n_n_a_m_e' in 'field list'] with root cause

 

 

 

#mybatis-plus不是mybatis配置,此处错误会导致Invalid bound statement (not found)错误
mybatis-plus:
#mybatis扫描mapper文件的位置
mapper-locations: classpath:mapper/*Mapper.xml
configuration:
map-underscore-to-camel-case: false # 禁止大写变小写时自动添加下划线

标签:java,下划线,Unknown,sql,SQL,mybatis,Mybatisplus,###
From: https://www.cnblogs.com/gigi2653/p/16982532.html

相关文章

  • 基于Springboot+Mybatis+mysql+vue宠物领养网站1
    @目录一、系统介绍二、功能展示1.主页(普通用户)2.登陆、注册(普通用户)3.宠物大全(普通用户)4.宠物详情(申请领养、点赞、评论)(普通用户)5.我的申请(普通用户)6.个人信息(普通用户......
  • 单据编号自动生成-SQL方案
    单据编号生成SQL 不同时间段的几个项目都有单据编号的需求,如果底层用的数据存储,则此方案的集成及使用非常方便,特意整理并分享出来。创建编号定义表ticket_typeDROP......
  • 基于jsp+sevlet+spring+mysql实现校园疫情防控管理信息系统
    @目录一、系统介绍二、采用技术及开发环境1.开发技术2.开发环境二、功能展示1.学校疫情统计2.各情况统计3.各学院学生情况统计4.各学院教师统计5.最新时报6.后台管理四、代......
  • jsp+sevlet+mysql图书管理系统
    @目录一、系统介绍二、功能展示1.图书查询(学生)2.借阅信息(学生)3.借阅历史(学生)4.借阅历史(管理员)5.读者管理(管理员)6.图书分类(管理员)7.图书借阅信息(管理员)8.图书......
  • mysql8权限控制
    CREATEUSER'test'@'xxx.xx.xx.%'IDENTIFIEDBY'123';grantallprivilegeson*.*to'test'@'xxx.xx.xx.%'IDENTIFIEDBY'123'withgrantoption;flushprivileg......
  • SpringBoot入门系列: JPA mysql(五)
    一,准备工作,建立spring-boot-sample-mysql工程1、http://start.spring.io/    A、Artifact中输入spring-boot-sample-mysql    B、勾选Web下的web    C、勾选......
  • 从SQL脚本中提取表小工具
     gspdemo.exeGeneralSQLParserDemo    ......
  • LeetCode-SQL-620. Not Boring Movies
    题目Xcityopenedanewcinema,manypeoplewouldliketogotothiscinema.Thecinemaalsogivesoutaposterindicatingthemovies’ratingsanddescriptions......
  • Sql Server 链接服务器 linked servers
    应用场景:A服务器数据库导入数据到B服务器数据库两种方案:1.链接服务器2.ImportandExportWizard(导入导出向导)方案分析:1.使用链接服务器的方式,较为灵活,创建好链......
  • 项目迁移中 遇到的MySQL问题
    两个问题都是数据库迁移导致的  1.Expression#16ofSELECTlistisnotinGROUPBYclauseandcontainsnonaggregatedcolumn'sanghe.a.contract_no'whichisno......