![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java bug
一枚小爪哇
开启爪哇撸代码之旅
展开
-
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transactio
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.xytai.aiinspector.tflow.entity.StepDefPoJo#3145b6b3-89ab-4ba8-a1bf-ba8da50bd3d0]原创 2022-06-13 19:28:53 · 1690 阅读 · 0 评论 -
解决 413 Request Entity Too Large(请求实体太大)
解决 413 Request Entity Too Large(请求实体太大)1. 原因上传文件出现问题 413 Request Entity Too Large,如下图所示我们可以看到请求的body的大小,在Content-Length后显示,Nginx默认的request body为1M,小于我们上传的大小2. 解决方案解决方案找到自己主机的nginx.conf配置文件,打开在http{}中加入 client_max_body_size 10m;然后重启nginxsystemc原创 2021-12-22 15:11:58 · 13565 阅读 · 0 评论 -
【Error response from daemon: mkdir /var/lib/docker/overlay2/413d0090b35b07401e25a5cc80538da5b43f6a9】
一、服务器磁盘空间不足使用docker重启重启失败[root@oracle ~]# docker start mongoError response from daemon: mkdir /var/lib/docker/overlay2/413d0090b35b07401e25a5cc80538da5b43f6a9da07a7e968fcc6ce53e7ecdcb/merged: no space left on deviceError: failed to start containers:原创 2021-12-22 15:04:29 · 3493 阅读 · 2 评论 -
/usr/bin/xauth: file /home/wj/.Xauthority does not exist
/usr/bin/xauth: file /home/wj/.Xauthority does not exist原创 2021-07-23 11:57:11 · 3475 阅读 · 1 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
启动项目报错之配置文件没有配置数据库属性(Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured)原创 2020-12-23 10:44:12 · 109 阅读 · 0 评论 -
Caused by: java.net.ConnectException: Connection refused: connect
启动项目报错之mysql服务未开启(Caused by: java.net.ConnectException: Connection refused: connect)原创 2020-12-23 10:32:35 · 9333 阅读 · 0 评论 -
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
启动项目报错之jar包冲突(Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy )原创 2020-12-22 18:16:06 · 5180 阅读 · 2 评论 -
java中使用List转Map对象时踩到的坑
Java中使用List转Map对象,正确使用Map<Long, UserPoJo> userIdMap = userList.stream().collect(Collectors.toMap(UserPoJo::getId, u -> u,(k1,k2)->k1));原创 2020-11-02 13:04:51 · 557 阅读 · 0 评论