摘要:
具体报错信息 ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]; nested: ElasticsearchE 阅读全文
![elasticsearch使用Sort排序时Please use a keyword field instead.](https://img2024.cnblogs.com/blog/1901531/202405/1901531-20240523161908686-511155444.png)
摘要:
springboot的yml文件中设置session的过期时间 #Session超时时间设置,单位是秒,默认是30分钟 servlet: session: timeout: 3600s 当过期时间是大于1分钟的时候是没有什么问题的,但是如果设置过期时间小于1分钟,就会失效。 servlet: ses 阅读全文
![SpringBoot设置Session失效时间](https://img2024.cnblogs.com/blog/1901531/202405/1901531-20240523105120394-156904475.png)
摘要:
jdk:17 springboot:3.0+ POM依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> 阅读全文
![SpringBoot发送邮件(三)](https://img2024.cnblogs.com/blog/1901531/202405/1901531-20240523104125857-1342872276.png)
摘要:
不需要在application.yml中进行配置 jdk:8 POM依赖 <!--发送邮件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifa 阅读全文
![SpringBoot发送邮件(二)](https://img2024.cnblogs.com/blog/1901531/202405/1901531-20240523103640429-523940410.png)
摘要:
POM依赖 <!--发送邮件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> 邮箱配置 mail: 阅读全文
![SpringBoot发送邮件(一)](https://img2024.cnblogs.com/blog/1901531/202405/1901531-20240523103211863-1991238604.png)
摘要:
其实SchedulingConfigurer实现方法很简单,只需要实现SchedulingConfigurer并重写configureTasks方法,在启动类必须加上@EnableScheduling注解即可。 @Configuration @EnableScheduling @Slf4j publ 阅读全文
![SpringBoot动态定时任务](https://img2024.cnblogs.com/blog/1901531/202405/1901531-20240523102825090-153304709.png)