Bug集
Silence丶你的名字
你的名字
展开
-
java.lang.UnsupportedOperationException: null
java.lang.UnsupportedOperationException: null原创 2023-03-07 10:05:23 · 184 阅读 · 1 评论 -
记录生产其妙BUG
111111111111111原创 2022-11-04 12:28:44 · 120 阅读 · 0 评论 -
高德地图JSAPI 2.0使用Java代码代替Nginx进行反向代理产生CORS跨域
高德地图JSAPI 2.0使用Java代码代替Nginx进行反向代理产生CORS跨域原创 2022-11-03 18:30:19 · 1583 阅读 · 0 评论 -
记录生产BUG复盘
记录生产BUG复盘原创 2022-08-10 13:43:19 · 359 阅读 · 0 评论 -
EasyExcel java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.beans.BeanMap
com.alibaba.excel.exception.ExcelAnalysisException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.beans.BeanMap$GeneratorCaused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.beans.BeanMap$Generator原创 2022-06-30 10:01:04 · 4891 阅读 · 1 评论 -
Exception in thread “main“ java.lang.IllegalArgumentException: Illegal Capacity: -1
Exception in thread "main" java.lang.IllegalArgumentException: Illegal Capacity: -1原创 2022-06-21 09:36:23 · 754 阅读 · 0 评论 -
CORS error 状态码451
项目背景,测试环境的前端代码,指向本地开发机。访问451谷歌浏览器查询错误码猜测,可能是跨域问题。其实具体错误也不是特别清楚。就想着换个浏览器。换搜狗浏览器。问题解决了。记录一下...原创 2022-04-12 18:40:51 · 444 阅读 · 0 评论 -
引用传递1
package cn.silence.thread;import cn.silence.model.User;public class Demo3 { public static void main(String[] args) { User aaa = new User("aaa"); method1(aaa); System.out.println("22222222222 = " + aaa); } priv...原创 2022-04-11 12:21:53 · 54 阅读 · 0 评论 -
40029错误{“errcode“:40029,“errmsg“:“invalid code, rid: 623bbdcd-3c97f4af-5a2c06d6“}
背景:服务器获取微信小程序openid的时候,报code无效。但是code是根据开发者文档生成的。服务器配置也没有问题。因为服务器,wechatAppId 和 wechatSecret不一致,会分别报这两个的错误。最终检查为,生成code的APPid 和服务器配置的appid不一致。其实小程序端生成没有问题,服务器配置也没有问题,问题就是两端配置对不上小程序appid创建小程序的appid 需和服务器配置的appid保持一致最终成功返回..原创 2022-03-24 08:38:22 · 18850 阅读 · 4 评论 -
idea springboot一直卡在启动 没有日志输出
断点从springApplication.run(args),进入在 SpringApplication,322行handleRunFailure(context, ex, exceptionReporters, listeners);可以看到错误信息。修改后正常启动原创 2022-03-10 18:59:45 · 1537 阅读 · 0 评论 -
list.size为1但是内容为null
又是一件离奇的事被我遇到了,哈哈。测试环境暴露出来的问题。还奇怪了好一会儿。然后查了一下资料。原来很多人都遇到了。大概原因就是 sql语句使用了计算函数sum(),但是where条件出来的数据为空,最后返回到java 映射进list了。 造成了list.size为1但是内容为null看到了两种解决办法,一种是strem流。一种是取下标0判null我用的是取下标0的方法if (CollectionsUtil.isNotEmpty(infoDOList) && Objects.no原创 2022-01-11 18:53:54 · 2476 阅读 · 0 评论 -
MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException 修改错误
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:### The error occurred while setting parameters### SQL: updateuserwhere id = ?### Cause:SQLParserException: ERROR ## get sqlparser result...原创 2022-01-10 12:34:56 · 6200 阅读 · 0 评论 -
Caused by: org.springframework.boot.web.server.PortInUseException: Port 8081 is already in use 端口占用
Caused by: org.springframework.boot.web.server.PortInUseException: Port 8081 is already in use解决引用:在dos下,输入 netstat -ano|findstr 8080//说明:查看占用8080端口的进程显示占用端口的进程taskkill /pid 9476 /f//说明,运行windows自带taskkill命令,将上面显示的进程号,结束掉。下面有图...原创 2021-09-16 10:05:32 · 1382 阅读 · 0 评论 -
java.security.invalidkeyexception: illegal key size or default parameters
解决原文摘自:Java实现AES加密,异常java.security.InvalidKeyException: Illegal key size 的解决_走过的足迹-CSDN博客Java实现AES加密,抛出异常如下:java.security.InvalidKeyException: Illegal key size代码参考http://my.oschina.net/Jacker/blog/86383?fromerr=x3l5xL1a原因:Illegal key size or default param.原创 2021-09-15 09:24:57 · 5662 阅读 · 0 评论 -
解决:Caused by: java.lang.ClassNotFoundException: org.springframework.core.metrics.ApplicationStartup
2021-08-13 19:05:22.766 ERROR 40484 --- [ main] o.s.boot.SpringApplication : Application run failedorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.context.Annotati.原创 2021-08-13 19:20:06 · 22207 阅读 · 5 评论