博主首页
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 47 下一页
摘要: 原因是因为mysql8.0之后的加密方式变了,导致连接报错,将mysql改为之前的旧加密方式即可 alter user 'root'@'%' identified with mysql_native_password by '密码' // 重新设置密码 flush privileges // 刷新权 阅读全文
posted @ 2022-11-03 09:25 笑~笑 阅读(131) 评论(0) 推荐(0)
摘要: @Configuration把一个类作为一个IoC容器,它的某个方法头上如果注册了@Bean(相当于spring xml里面的bean标签),就会作为这个Spring容器中的Bean。 @Scope注解 作用域 @Scope用于指定scope作用域的(用在类上) scope还有prototype、r 阅读全文
posted @ 2022-10-31 14:58 笑~笑 阅读(37) 评论(0) 推荐(0)
摘要: Springboot 多传参数导致 JSON parse error: Unrecognized filed ...异常 默认情况下@RequestBody标注的对象必须包含前台传来的所有字段。 如果没有包含前台传来的字段,就会报错:Unrecognized field xxx , not mark 阅读全文
posted @ 2022-09-22 09:35 笑~笑 阅读(1423) 评论(0) 推荐(0)
摘要: (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value 先按提示添加maxLifetime的超时时间试试看 spring: # 数据库连接 dataso 阅读全文
posted @ 2022-09-22 09:17 笑~笑 阅读(1244) 评论(0) 推荐(0)
摘要: There are test failures.Please refer to D:\Projects\java_basic\app-jna-sdk\target\surefire-reports for the individual test results. Please refer to du 阅读全文
posted @ 2022-09-14 18:12 笑~笑 阅读(260) 评论(0) 推荐(0)
摘要: 线上大量异常,查看日志,却只有java.lang.NullPointerException,无异常堆栈信息,无法定位异常的位置。只能在本地调试查找异常位置,但是在本地调试过程中却可以打印异常堆栈的。后来继续查找之前的日志,之前的某段时间这个地方是存在异常堆栈信息的。可以设置JVM参数,在启动进程的时 阅读全文
posted @ 2022-09-14 11:44 笑~笑 阅读(167) 评论(0) 推荐(0)
摘要: assert jobPO!=null; JobTaskVO jobTaskVO = new JobTaskVO(); BeanUtils.copyProperties(jobPO,jobTaskVO); 标识此处必须为true ,否则异常 阅读全文
posted @ 2022-09-07 11:50 笑~笑 阅读(14) 评论(0) 推荐(0)
摘要: identifier of an instance of com.peony.common.entity.po.TaskGroupPO was altered from to 2c288aa6-b1 JPA :这个错误是由于在一个事务中更新了主键,而主键是不能被更新的. 可能操作:查询出来,然后se 阅读全文
posted @ 2022-08-31 20:09 笑~笑 阅读(22) 评论(0) 推荐(0)
摘要: 如果存在多个%d,则需要在不是作为分割时间的里面加上aux <springProperty scope="context" name="appLogPath" source="appLogPath" defaultValue="/data/backup" /> <appender name="FIL 阅读全文
posted @ 2022-08-31 14:02 笑~笑 阅读(220) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-08-30 11:25 笑~笑 阅读(647) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 47 下一页