摘要: 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) 编辑