摘要: @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) @Documented public @interface RequestInitial { Class<?>[] groups() 阅读全文
posted @ 2024-04-21 11:31 yydssc 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-04-08 20:29 yydssc 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-04-08 20:24 yydssc 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 计数器 package com.itheima.limit; import java.util.concurrent.*; public class Counter { public static void main(String[] args) { //计数器,这里用信号量实现 final Sem 阅读全文
posted @ 2024-04-02 21:25 yydssc 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 先来先淘汰(FIFO) package com.itheima.release; import java.util.Iterator; import java.util.LinkedList; public class FIFO { LinkedList<Integer> fifo = new Li 阅读全文
posted @ 2024-04-02 21:22 yydssc 阅读(2) 评论(0) 推荐(0) 编辑
摘要: package com.example.observer.customization.event; import java.util.EventObject; /** * 事件的抽象 */ public abstract class AppEvent extends EventObject { /* 阅读全文
posted @ 2024-04-01 22:59 yydssc 阅读(2) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>s3</artifactId> <version>2.20.144</version> </dependency> public static Map<String, 阅读全文
posted @ 2023-10-22 15:42 yydssc 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 ElasticSearch 安装 1.1 ElasticSearch安装 1、上传ElasticSearch安装包 alt+p # 打开sftp窗口 # 上传es安装包 put e:/software/elasticsearch-7.4.0-linux-x86_64.tar.gz 2、执行解压操 阅读全文
posted @ 2023-07-23 22:02 yydssc 阅读(106) 评论(0) 推荐(0) 编辑
摘要: IK分词器安装 1、环境准备 Elasticsearch 要使用 ik,就要先构建 ik 的 jar包,这里要用到 maven 包管理工具,而 maven 需要java 环境,而 Elasticsearch 内置了jdk, 所以可以将JAVA_HOME设置为Elasticsearch 内置的jdk 阅读全文
posted @ 2023-07-23 21:58 yydssc 阅读(87) 评论(0) 推荐(0) 编辑
摘要: GET _search { "query": { "match_all": {} } } #创建索引 PUT person PUT person2 # 删除索引 DELETE person2 # 查询索引 GET person2 GET person # 添加映射 PUT /person/_mapp 阅读全文
posted @ 2023-07-23 21:48 yydssc 阅读(1) 评论(0) 推荐(0) 编辑