摘要: elasticsearch使用Sort排序时Please use a keyword field instead. 具体报错信息 ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]; nested: ElasticsearchE 阅读全文
posted @ 2024-05-23 16:19 leepandar 阅读(8) 评论(0) 推荐(0) 编辑
摘要: SpringBoot设置Session失效时间 springboot的yml文件中设置session的过期时间 #Session超时时间设置,单位是秒,默认是30分钟 servlet: session: timeout: 3600s 当过期时间是大于1分钟的时候是没有什么问题的,但是如果设置过期时间小于1分钟,就会失效。 servlet: ses 阅读全文
posted @ 2024-05-23 10:51 leepandar 阅读(19) 评论(0) 推荐(0) 编辑
摘要: SpringBoot发送邮件(三) jdk:17 springboot:3.0+ POM依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> 阅读全文
posted @ 2024-05-23 10:42 leepandar 阅读(2) 评论(0) 推荐(0) 编辑
摘要: SpringBoot发送邮件(二) 不需要在application.yml中进行配置 jdk:8 POM依赖 <!--发送邮件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifa 阅读全文
posted @ 2024-05-23 10:36 leepandar 阅读(1) 评论(0) 推荐(0) 编辑
摘要: SpringBoot发送邮件(一) POM依赖 <!--发送邮件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> 邮箱配置 mail: 阅读全文
posted @ 2024-05-23 10:32 leepandar 阅读(5) 评论(0) 推荐(0) 编辑
摘要: SpringBoot动态定时任务 其实SchedulingConfigurer实现方法很简单,只需要实现SchedulingConfigurer并重写configureTasks方法,在启动类必须加上@EnableScheduling注解即可。 @Configuration @EnableScheduling @Slf4j publ 阅读全文
posted @ 2024-05-23 10:28 leepandar 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Unrecognized option: --add-opens java.base/java.lang=ALL-UNNAMED 由于 Java中有关反射相关的功能自从 JDK9 就开始进行了限制,因此如果还想继续在JDK9以及更高的版本中使用反射相关的功能,需要添加JVM启动参数, --add-opens java.base/java.lang=ALL-UNNAMED 。 由于现在的项目都是用Docker部署的,所以紧接着在 阅读全文
posted @ 2024-05-15 11:06 leepandar 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Mac 安装 RabbitMQ 一般来说,安装分为两种方式: 通过 brew 命令安装。在这里,推荐使用 brew 来安装,非常强大的 Mac 端包管理工具。 下载 RabbitMQ 源文件,解压源文件之后进行安装。 Docker启动 一、brew 命令安装Mac安装 RabbitMQ 1、安装 erlang brew insta 阅读全文
posted @ 2024-05-06 09:54 leepandar 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Vue中form表单常用rules校验规则 是否合法IP地址 const checkIPCode = (rule, value, callback) => { if (/^(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.(\d|[1-9]\ 阅读全文
posted @ 2024-04-27 09:48 leepandar 阅读(9) 评论(0) 推荐(0) 编辑
摘要: The request was rejected because the URL contained a potentially malicious String &quot;%2e&quot; org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL contained a potentially malicious String 阅读全文
posted @ 2024-04-17 21:08 leepandar 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 清理系统centos下缓存并释放内存 问题描述 在启动容器的时候报错 Exception in thread "main" java.lang.RuntimeException: starting java failed with [1] output: # # There is insufficient memory for the 阅读全文
posted @ 2024-03-25 15:24 leepandar 阅读(418) 评论(0) 推荐(0) 编辑
摘要: MAC安装elasticsearch-head插件 1.下载插件源码 git clone https://github.com/mobz/elasticsearch-head.git 2.进入文件夹 npm install 3.安装 npm install 4.启动 npm run start 5.访问http://localhost:910 阅读全文
posted @ 2024-03-22 14:26 leepandar 阅读(3) 评论(0) 推荐(0) 编辑
摘要: SpringBoot整合Redis 1、pom.xml 中引入 redis 依赖 <!-- Redis依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactI 阅读全文
posted @ 2024-01-26 10:12 leepandar 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Java中遍历方法对比 Demo public class Test { public static void main(String[] args) { test(10); test(100); test(1000); test(10000); } public static void test(int size) { 阅读全文
posted @ 2024-01-21 16:04 leepandar 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Mac/Centos安装elasticsearch7.14.0 一、安装包安装 1.下载 访问 ElasticSearch 官网 进行下载 2.解压 3.配置 进入 ElasticSearch 安装目录的 config 目录在 elasticsearch.yml 文件中添加如下信息。 action.auto_create_index: .security,.mo 阅读全文
posted @ 2024-01-21 13:10 leepandar 阅读(34) 评论(0) 推荐(0) 编辑