上一页 1 2 3 4 5 6 7 8 9 ··· 46 下一页

2024年4月15日

服务限流

摘要: 概述 https://javaguide.cn/high-availability/limit-request.html 单机限流 Guava RateLimiter 用于控制并发请求速率的工具类,可以有效地实现限流功能。 通过RateLimiter,我们可以轻松控制系统的吞吐量,防止短时间内请求过 阅读全文

posted @ 2024-04-15 15:48 anpeiyong 阅读(29) 评论(0) 推荐(0)

Linux---CPU

摘要: lscpu 输出详细的CPU信息,包括架构、核心数、线程数、CPU型号、频率、缓存大小以及其他相关的CPU特性 cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l 物理CPU的数量 cat /proc/cpuinfo | grep 阅读全文

posted @ 2024-04-15 14:16 anpeiyong 阅读(14) 评论(0) 推荐(0)

Linux---内存

摘要: free https://www.runoob.com/linux/linux-comm-free.html 显示内存的使用情况,包括实体内存,虚拟的交换文件内存,共享内存区段,以及系统核心使用的缓冲区等。 cat /proc/meminfo 详细的内存信息,包括总内存、空闲内存、可用内存、缓冲区、 阅读全文

posted @ 2024-04-15 11:13 anpeiyong 阅读(14) 评论(0) 推荐(0)

2024年4月12日

guava-retrying

摘要: https://github.com/rholder/guava-retrying ##What is this? The guava-retrying module provides a general purpose method for retrying arbitrary Java code 阅读全文

posted @ 2024-04-12 14:44 anpeiyong 阅读(56) 评论(0) 推荐(0)

2024年4月11日

Spring-Retry

摘要: https://github.com/spring-projects/spring-retry This project provides declarative retry support for Spring applications. It is used in Spring Batch, S 阅读全文

posted @ 2024-04-11 15:16 anpeiyong 阅读(65) 评论(0) 推荐(0)

2024年3月27日

DecimalFormat

摘要: 概述 <code>DecimalFormat</code> is a concrete subclass of <code>NumberFormat</code> that formats decimal numbers. It has a variety of features designed 阅读全文

posted @ 2024-03-27 17:26 anpeiyong 阅读(31) 评论(0) 推荐(0)

BigDecimal

摘要: 概述 Immutable, arbitrary-precision signed decimal numbers. 不可变的、任意精度的 有符号的 十进制数;A {@code BigDecimal} consists of an arbitrary precision integer <i>unsc 阅读全文

posted @ 2024-03-27 16:53 anpeiyong 阅读(92) 评论(0) 推荐(0)

2024年2月29日

Mac相关指令

摘要: 端口占用 netstat netstat -anp tcp | grep 端口号 解决:kill 被占用的端口进程 阅读全文

posted @ 2024-02-29 18:45 anpeiyong 阅读(10) 评论(0) 推荐(0)

2024年2月21日

Sql---获取分组数据

摘要: 按条件取分组内前几条数据 示例 按照资讯分类分组,取每组的前3条资讯信息列表; CREATE TABLE `info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8 COLLATE ut 阅读全文

posted @ 2024-02-21 16:12 anpeiyong 阅读(40) 评论(0) 推荐(0)

2024年2月20日

Mybatis---结果映射-自动映射

摘要: https://mybatis.org/mybatis-3/zh_CN/sqlmap-xml.html#Auto-mapping 正如你在前面一节看到的,在简单的场景下,MyBatis 可以为你自动映射查询结果。但如果遇到复杂的场景,你需要构建一个结果映射。 但是在本节中,你将看到,你可以混合使用这 阅读全文

posted @ 2024-02-20 15:12 anpeiyong 阅读(72) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 46 下一页

导航