上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 58 下一页

2023年6月14日

es 7.0常用的命令

摘要: ### es 7.0常用的命令 es 7.0中只有索引和文档(document),没有类型(type)了。 * es新建索引: 格式: ``` PUT /索引名称 { "mappings": { "properties":{ "字段名称":{ "type":"字段类型" } } } } ``` PU 阅读全文

posted @ 2023-06-14 17:38 乐之者v 阅读(101) 评论(0) 推荐(0) 编辑

springBoot不同环境读取不同的配置

摘要: ### springBoot不同环境读取不同的配置 在application.properties 中指定使用 哪个环境的配置文件: ``` spring.profiles.active=dev ``` **当 spring.profiles.active 为 dev 时,会读取 applicati 阅读全文

posted @ 2023-06-14 00:07 乐之者v 阅读(284) 评论(0) 推荐(0) 编辑

2023年6月13日

Spring/SpringBoot自定义线程池

摘要: Spring/SpringBoot自定义线程池 在 Spring/SpringBoot 中,可以使用 @Configuration 和 @Bean 去设置线程池,用 @Value 去做线程池的参数配置。 依赖包: 引用 google 的 guava包。 <dependency> <groupId>c 阅读全文

posted @ 2023-06-13 22:02 乐之者v 阅读(401) 评论(0) 推荐(0) 编辑

2023年6月9日

Arthas常用的命令(二)--trace

摘要: ## trace 参数 | 参数名称 | 参数说明 | | | | | class-pattern | 类名表达式匹配 | | method-pattern | 方法名表达式匹配 | | condition-express | 条件表达式 | | -E | 开启正则表达式匹配,默认为通配符匹配 | 阅读全文

posted @ 2023-06-09 22:45 乐之者v 阅读(3020) 评论(0) 推荐(0) 编辑

2023年6月6日

Arthas启动与常用的命令(一)-- dashboard、watch

摘要: ### arthas 有什么用? Arthas 是Alibaba开源的Java诊断工具,深受开发者喜爱。 以下是官方文档提到的 arthas 的作用。 当你遇到以下类似问题而束手无策时, Arthas 可以帮助你解决。 * 这个类从哪个 jar 包加载的?为什么会报各种类相关的 Exception? 阅读全文

posted @ 2023-06-06 23:52 乐之者v 阅读(1171) 评论(0) 推荐(0) 编辑

2023年6月3日

Windows安装arthas

摘要: ### Windows安装arthas 下载地址:https://arthas.aliyun.com/doc/download.html ![](https://img2023.cnblogs.com/blog/962833/202306/962833-20230603223238429-85096 阅读全文

posted @ 2023-06-03 22:43 乐之者v 阅读(667) 评论(0) 推荐(0) 编辑

2023年6月1日

每月摘录--2023年5月

摘要: ### 企业 * 三星电子正面临有史以来第一次工会罢工,此前三星电子全国工会威胁要举行罢工,以抗议工资问题以及该公司据称试图阻挠工会的行为。该工会号称代表了三星电子约9%的员工,即约1万人。该工会周四发表声明,指责这家韩国最大的公司将工会领导人排除在薪资谈判之外。该工会此前曾要求今年加薪6%以上,部 阅读全文

posted @ 2023-06-01 22:12 乐之者v 阅读(38) 评论(0) 推荐(0) 编辑

SpringBoot集成Redisson使用分布式锁

摘要: 依赖包: 不要使用太低的 版本,低版本有内存泄露的问题。可以使用 3.18 及以上的版本。 <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.18.1</version> 阅读全文

posted @ 2023-06-01 22:02 乐之者v 阅读(581) 评论(0) 推荐(0) 编辑

2023年5月31日

RedisUtil工具类

摘要: ### Redis工具类 ``` import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redi 阅读全文

posted @ 2023-05-31 22:58 乐之者v 阅读(65) 评论(0) 推荐(0) 编辑

SpringBoot集成Redis

摘要: ### 依赖包: ``` org.springframework.boot spring-boot-starter-data-redis org.apache.commons commons-pool2 ``` ### 配置文件 如果是 properties 文件,使用: ``` spring.re 阅读全文

posted @ 2023-05-31 22:45 乐之者v 阅读(51) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 58 下一页

导航