![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误专栏
文章平均质量分 65
记录平时遇到的错误,方便二次发生及时处理
兮家小二
傻傻的小男孩,qq:1720696548 wx:1720696548
展开
-
spring-boot 项目打包后运行 org/springframework/data/redis/connection/zset/Tuple 错误
妈蛋,jenkins 部署发现启动不了,各种清理都不行,换了 jenkins 上的 maven 版本,清了所有依赖重新拉,都不行。把 redisson-spring-boot-starter 3.18.1 降到 3.17.4 就好了。结果 3.18.1 兼容了本地运行,没兼容打包后的运行,找了我几大个小时一点一点的排查错误。前两天刚把 springboot 2.5.14 升级了 2.7.10。然后试本地打包运行,我去,一直以为是部署问题,结果本地也不行。本地直接启动正常,结果打包后出现问题。原创 2023-04-19 11:49:18 · 5398 阅读 · 3 评论 -
BufferedImage 部署在Linux 下中文字体乱码,展示错误
1、错误原因Linux没有对应的字体,字体缺失2、处理方式1、打开win的字体目录:C:\Windows\Fonts2、找到 Linux下 jdk安装目录下的目录–> /jre/lib/fonts 路径中添加字体支持,如:/usr/java/jdk1.8.0_231/jre/lib/fonts3、把BufferedImage 中用到的对应字体的文件从win 拷贝linux 下 jdk 下的 /fonts 目录,/jre/lib 没有fonts 目录就自己创建一个,ok4、重启服务才能生效原创 2020-05-16 11:04:29 · 2362 阅读 · 0 评论 -
记录一下全局异常 GlobalExceptionHandler 不生效问题
一、正常加载时的情况加载正常时,在idea 中可以发现是有绿色的小图标的,然而我们的并没有这个图标,表示这个类没有被spring的bend管理到二、使用排除法找问题1、当发现全局异常没有执行, 首先打断点看,发现方法在static 内抛出的 throw new ErrorException于是把代码 throw 放到最外层的入口处, 发现不是static的问题, (排除)2、然后看了整个项目是否还存在另外一个全局异常类, 结果并没有(排除)3、于是猜想是不是springboot的版本问题原创 2021-04-10 14:58:01 · 13908 阅读 · 2 评论 -
git 没拉代码就提交重出现 error: cannot pull with rebase: Your index contains uncommitted changes.
错误内容$ git pull --rebaseerror: cannot pull with rebase: Your index contains uncommitted changes.error: please commit or stash them.处理方法git stash git pull --rebase git stash pop或git stash 后 在 idea 重新拉代码就好了...原创 2020-10-23 14:56:38 · 6245 阅读 · 1 评论 -
MySql 版本变动,在使用 group by 进行分组查询报错 sql_mode=only_full_group_by
一、错误原因MySQL5.7.5后only_full_group_by 成为 sql_mode的默认选项之一,这可能导致一些sql语句失效。比如在使用 group by 进行分组查询报错二、解决办法1、修改 sql_mode-- 查询select @@global.sql_mode-- 修改set @@sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGI原创 2020-10-12 20:19:41 · 1304 阅读 · 0 评论 -
Nginx 502错误: Failed to load resource: the server responded with a status of 502 (Bad Gateway)
发现问题错误信息: Failed to load resource: the server responded with a status of 502 (Bad Gateway)主要原因是 ,是cookie携带的 header太多了,请求头数据过大解决问题nginx 添加配置 # 502 bad gateway 错误解决配置 start proxy_buffer_size 64k; proxy_buffers 32 32k; proxy_busy_buffers原创 2020-08-21 01:55:37 · 30539 阅读 · 1 评论 -
记录一下 springboot 整合 SecurityConfig后, 前端访问后端跨域的坑
一、WebMvcConfigurer 中添加跨域配置注意: addExposedHeader() 一定要配置, 否则前端将获取不到响应头中的 TOKEN /Authorization 参数@Configurationpublic class MvcConfig implements WebMvcConfigurer { @Bean public CorsFilter corsFilter() { final UrlBasedCorsConfigurationSou原创 2020-08-17 01:00:15 · 2451 阅读 · 0 评论 -
关于Nginx 配置出现 405 Method Not Allowed 一次血的教训
遇到错误在一次文件(头像)上传中,出现了错误 405 Method Not Allowed (本地和直接 ip服务服务器都没有问题),于是直接把错误的矛头直接指向了 Nginx我的配置如下,访问域名转发到9049, 在此处配置了 oss 路径,用于访问阿里云的 oss 存储对象文件百度了一下资料,大致错误的意思就是:httppost请求目标网站会出现405 状态码,原因为 Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求, 所以将post请求改为get请求原创 2020-08-04 04:04:19 · 52283 阅读 · 5 评论 -
LocalDateTime 字段报错: Error attempting to get column ‘reg_time‘ from result set
错误信息当前数据源 <!-- druid阿里巴巴数据源 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.10</version>原创 2020-07-24 17:25:20 · 2570 阅读 · 3 评论 -
Error attempting to get column time from result set. Cause: java.sql.SQLFe 错误
错误原因:错误信息: Error attempting to get column 'time' from result set. Cause: java.sql.SQLFe错误原因: 日期无法正常序列化与反序列化当前采用技术1、数据库字段为 datetime 类型2、使用了mybatis-plus 框架,当前是3.3.03、实体类使用了 LocalDateTime,处理办法一、添加序列化处理的jar包 <!-- Po类中的域,可以用LocalDate来映射数据库中的dat原创 2020-06-24 17:32:51 · 21174 阅读 · 1 评论 -
LCN 错误: attempts to join the non-existent transaction group
分布式事务 lcn 错误:com.codingapi.txlcn.logger.AbstractTxLogger.error(AbstractTxLogger.java:70) - business code errorattempts to join the non-existent transaction grouprpc execute service error. action: joinGroup困扰了我一天,排除了各种可能性@Transactional 事务?jar 冲突?@Fe原创 2020-06-01 22:33:49 · 2147 阅读 · 1 评论 -
eclipse -- 出现红色感叹号错误(eclipse导入jar包无效)
红色感叹号错误原因:jar 包依赖冲突找到Build Path --> Configure Build Path删除冲突(这里有两个jar,版本不一致,导致的错误)原创 2019-06-21 09:07:23 · 5579 阅读 · 0 评论 -
git -- IDEA 中第一次上传文件错误
首先是你的项目中有和和历史不符的东西Push rejected: Push to origin/master was rejected 推拒绝:推送到起源/主人被拒绝 直接是解决办法,直接打开你要上传代码的文件夹位置鼠标右键git Bash Here然后直接下面两行命令解决问题IDEA 中 AIT + F12git pull origin master –allow-unrelated...原创 2019-07-24 17:50:21 · 652 阅读 · 0 评论 -
JPA错误 -- No identifier specified for entity: com.fyh.meng.configsystem.domain.GemConfig
此错误为 实体类id错误原因1:可能没加id 标识原因2:包可能引错了,要 javax下的原创 2019-05-14 09:59:07 · 7511 阅读 · 5 评论 -
Maven Install报错:Perhaps you are running on a JRE rather than a JDK?
错误:Maven Install报错:Perhaps you are running on a JRE rather than a JDK?解决方法借鉴:https://www.jianshu.com/p/1ed0ec397575原创 2019-04-27 18:42:27 · 212 阅读 · 0 评论