摘要:
以QQ邮箱为例,我们先要在邮箱中设置--账户下找到以下向并开启: 1、首先是引入starter <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifac 阅读全文
posted @ 2020-02-12 14:09
西西嘛呦
阅读(331)
评论(0)
推荐(0)
摘要:
在启动入口上加上@EnableScheduling ,在需要定时的方法上加上@Scheduled注解 比如: package com.gong.spingbootes.service; import org.springframework.scheduling.annotation.Schedule 阅读全文
posted @ 2020-02-12 13:28
西西嘛呦
阅读(145)
评论(0)
推荐(0)
摘要:
先看同步的情况: AysncService.java package com.gong.spingbootes.service; import org.springframework.scheduling.annotation.Async; import org.springframework.st 阅读全文
posted @ 2020-02-12 11:43
西西嘛呦
阅读(200)
评论(0)
推荐(0)
摘要:
各种过时,版本不兼容,只能暂时将代码放在这先做参考了。 pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artif 阅读全文
posted @ 2020-02-12 11:27
西西嘛呦
阅读(954)
评论(0)
推荐(0)
摘要:
1、新建一个springboot项目,选择web、nosql中的elasticsearch。 2、springboot默认使用spring-data操作elasticsearch,也可以使用jest操作elasticsearch。 3、在pom.xml中注释掉spring-data的elastics 阅读全文
posted @ 2020-02-12 10:44
西西嘛呦
阅读(1290)
评论(2)
推荐(0)