0
  • 最佳答案

    ClaminUtils检查下写错了没

    1292534400881385472  评论     打赏       bukki
    • 黑羊一匹  回复 @bukki
      已经解决啦,谢谢小伙伴热心解决
      黑羊一匹 2020-08-22 19:51   回复 1267104227352645632
    • 黑羊一匹  回复 @bukki
      就是这个里面的代码,我粗心写错了
      黑羊一匹 2020-08-22 19:53   回复 1267104227352645632
  • 是不是Bean类和数据库里的column的名字没对上?带下划线的应该要用一个别名

    1247069679944470528  评论     打赏       lxxxx9
    • 黑羊一匹  回复 @lxxxx9
      ClaminUtils里面我自个写错了,谢谢小伙伴的帮助啦
      黑羊一匹 2020-08-22 19:54   回复 1267104227352645632
  • 为什么为空你问你自己呀,逆回去追踪就好。

    1153952789488054272  评论     打赏       拉大锯
    • 黑羊一匹  回复 @拉大锯
      找了好久了,找不出
      黑羊一匹 2020-08-18 22:09   回复 1267104227352645632
    • 黑羊一匹  回复 @拉大锯
      好累,从8点找到现在
      黑羊一匹 2020-08-18 22:09   回复 1267104227352645632
    • 拉大锯  回复 @黑羊一匹
      那你好好休息,明天再整。
      拉大锯 2020-08-18 22:10   回复 1153952789488054272
  • 后台提示错误为[org.hibernate.internal.ExceptionMapperStandardImpl] : HHH000346: Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute statement]

    [2020/08/18-21:49:37] [http-nio-2020-exec-3] [ERROR] [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet]] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause

    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'user_id' cannot be null

       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

    1267104227352645632  评论     打赏       黑羊一匹
    相关问题
    黑羊一匹 · 后端求助
    2021-02-24 07:21 461 2
    whoami · 后端
    2021-02-26 01:54 346 5
    独一无二的名字. · 博客系统后端
    2021-04-29 05:27 299 2
    阿肥 · java / 后端
    2022-01-11 00:36 252 2
    Hewie · 后端
    2022-02-25 14:40 159 50