- 博客(8)
- 收藏
- 关注
原创 pagehelper版本升级导致pageSize为0时无法查询全部数据
springboot、pagehelper(5.3.0)、升级、pageSize=0、page-size-zreo(pageSizezero)不生效
2022-04-08 18:34:29
5120
转载 @Valid注解,异常统一处理
转载:原文链接:https://blog.youkuaiyun.com/qq_38796327/article/details/89421466在我们使用springboot作为微服务框架进行敏捷开发的时候,为了保证传递数据的安全性,需要对传递的数据进行校验,但是在以往的开发中,开发人员花费大量的时间在繁琐的if else 等判断语句来对参数进行校验,这种方式不但降低了我们的开发速度,而且写出来的代码中带有很多冗余代码,使得编写的代码不够优雅,为了将参数的验证逻辑和代码的业务逻辑进行解耦,Java给我们提供了@Va
2021-08-10 11:35:49
3309
1
原创 springboot打包瘦身(本地jar)
由于springboot项目jar包太大,导致传输发布很不方便,于是尝试将flatjar瘦身,即将jar包里面的第三方jar,即lib目录移出来,有很多的本地jar包需要解决,如: 1. 原始配置,使用spring-boot-maven-plugin:2. 第一种方式:使用maven-dependency-plugin、spring-boot-maven-plugi.
2020-12-06 11:26:46
396
原创 springboot项目启动慢问题排查
springboot项目,随着时间的推移,启动耗时逐步增加,从几分钟慢慢的达到30多分钟,有点恐怖!项目中用到技术:hibernate、redis、kafka、线程池等,启动慢的环境使用的是mysql数据库!1.最开始查看的启动日志,是在输出:org.hibernate.id.UUIDHexGenerator : HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4...
2020-05-26 13:41:19
7507
1
原创 neo4j 安装错误解决:Please see the attached cause exception "id_dsa_with_sha3_224"
安装neo4j,windows版本报错:org.neo4j.server.database.LifecycleManagingDatabase@49798e84Caused by: java.lang.NoSuchFieldError: id_dsa_with_sha3_224原因:由于之前在jdk8:\jre\lib\ext目录下加了一个jar包,用来加解密算法导致!去掉此jar...
2020-04-10 13:13:51
1366
原创 JPA懒加载异常:could not initialize proxy - no Session
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: xxx.xxx.xxx.xxx.xxx.xxx.xxx, could not initialize proxy - no Sessionspringboot项目,hibernate调用...
2020-04-08 00:10:53
956
原创 使用sqlldr,解决SQL*Loader-704,ORA-12154
按转载文章执行sqlldr,另附原创:使用sqlldr时报错:SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]ORA-12154: TNS:could not resolve the connect identifier specified一. 作用SQL*LOADER是ORACLE的数据加载工具,用...
2019-08-10 18:37:04
13334
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人