上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 48 下一页
摘要: 使用IDEA执行单元测试并查看覆盖率 导出会生成多个HTML文件 阅读全文
posted @ 2024-02-03 14:43 strongmore 阅读(1538) 评论(0) 推荐(0)
摘要: 问题描述 Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unab 阅读全文
posted @ 2024-02-03 11:26 strongmore 阅读(323) 评论(0) 推荐(0)
摘要: 前言 如果我们应用中使用@ComponentScan注解扫描的package包含的类很多的时候,Spring解析耗时就会很多,相应的应用启动时间也就更长,Spring 5.0 引入了一个新的注解@Indexed ,它可以为Spring的模式注解添加索引,以提升应用启动性能。 使用 <dependen 阅读全文
posted @ 2024-02-01 18:40 strongmore 阅读(741) 评论(0) 推荐(0)
摘要: 查询 CPU 核数 nproc 结果为 4 查询内存 free -h # 以人类(human)可读的方式展示 结果为 total used free shared buff/cache available Mem: 15Gi 2.2Gi 327Mi 1.0Mi 13Gi 13Gi Swap: 8.0 阅读全文
posted @ 2024-01-31 23:29 strongmore 阅读(188) 评论(0) 推荐(0)
摘要: 问题 输入源“/body/reason”映射到值字段“退款原因”字符串规则校验失败,字符数 0,小于最小值 1 在调用微信退款时,遇到以上的问题,具体原因为:文档上退款原因为选填,我们可以填null,但不能是空字符串。 参考 微信官方文档-申请退款 阅读全文
posted @ 2024-01-30 20:29 strongmore 阅读(219) 评论(0) 推荐(0)
摘要: 问题 Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.13. 阅读全文
posted @ 2024-01-30 08:31 strongmore 阅读(2223) 评论(0) 推荐(0)
摘要: 前言 在我们系统中,有很多敏感数据,如 MySQL 及 Redis 的账号密码信息等,jasypt 可以帮我们加密这些信息,使系统更加的安全。 使用 添加 maven 依赖 <dependency> <groupId>com.github.ulisesbocchio</groupId> <artif 阅读全文
posted @ 2024-01-28 21:45 strongmore 阅读(305) 评论(0) 推荐(0)
摘要: 前言 nacos 后台页面提供了批量导入配置文件的功能,但官方文档中没有说明具体怎么使用。 具体使用 需要 zip 文件,文件夹名称为 group 名称。 导入成功页面提示为 注意:此功能很危险,没有二次确认的机会,一定要先在测试环境验证好。 mac 系统下压缩文件中会多一个.DS_Store 文件 阅读全文
posted @ 2024-01-25 21:08 strongmore 阅读(496) 评论(0) 推荐(0)
摘要: 排除指定包/类/方法日志输出 如下为 logback.xml 的配置 <springProfile name="pro"> <appender name="BUSINESS_API" class="ch.qos.logback.core.rolling.RollingFileAppender"> < 阅读全文
posted @ 2024-01-24 21:23 strongmore 阅读(1477) 评论(0) 推荐(0)
摘要: 前言 我们在项目中使用的持久层框架大部分都是 mybatis,如果在日志中能打印 sql 的话,对于我们排查问题会更加方便。 第一种方式:修改 mybatis 配置 修改配置 mybatis: configuration: log-impl: org.apache.ibatis.logging.sl 阅读全文
posted @ 2024-01-22 20:30 strongmore 阅读(8041) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 48 下一页