摘要: 代码示例 @Configuration public class AspectConfig { @Aspect @Component @Order(Ordered.HIGHEST_PRECEDENCE) public static class LogAspect { @Pointcut("execu 阅读全文
posted @ 2024-04-13 17:22 strongmore 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 问题描述 在项目中有一个 MySQL 数据库归档程序,每天会定时跑,在归档逻辑中,会涉及到对大表的查询(根据创建时间查询,它是索引),这个过程中会锁数据(行级锁),然后我们插入新的数据就会报错:获取锁超时 Caused by: com.mysql.cj.jdbc.exceptions.MySQLTr 阅读全文
posted @ 2024-04-13 17:21 strongmore 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 问题描述 支付宝互联网地址为 https://openapi.alipay.com/gateway.do,专线相比于互联网地址速度更快,更加稳定。这里我们假设专线地址为 https://xxx.xxx.xxx.xxx:443/gateway.do。 我们通过支付宝的 SDK 来访问支付宝专线地址,结 阅读全文
posted @ 2024-04-13 12:55 strongmore 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 前言 和 Tomcat 类似,Jetty 也是一个 Web 应用服务器,相对于 Tomcat,Jetty 更加轻量、更加简易、更加灵活。今天通过代码来简单分析下 SpringBoot 中是如何启动 Jetty 的。 Jetty简介 使用 import java.io.File; import jav 阅读全文
posted @ 2024-04-13 12:55 strongmore 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 问题描述 boostrap.yml 配置如下 spring: application: name: cnblogs cloud: nacos: config: server-addr: http://ip:8848 namespace: d8b0df04-aa58-4a5b-b582-7d133b9 阅读全文
posted @ 2024-04-13 12:54 strongmore 阅读(26) 评论(0) 推荐(0) 编辑