JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

报错 org.springframework.dao.DataIntegrityViolationException: Error attempting to get column

发布时间 2023-11-02 13:24:17作者: 汤圆aiWL

 

 

 

原因是持久化层的字段属性  跟 数据库的没有对应上, 类型不对

dao.DataIntegrityViolationException: Error attempting to get column 'STATUS' from result set.  

  

<if test="record.status != null">
        'STATUS' = #{record.status,jdbcType=DECIMAL},
      </if>

比如数据库是 int类型的 Status,但是你上面是 字符串类型的

  

    本栏目推荐文章
  • A connection was successfully established with the server but then an error
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • 【解决方案】Error running,Command line is too long
  • fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
  • ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • "nginx.conf" E514 : write error (file system full?)
  • org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
  • Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'
  • antd中columns中配置的操作,如何,调用函数组件中的方法
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们