摘要:
引入maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> yml配置 spring: mail: h 阅读全文
posted @ 2020-01-23 19:30
yvioo
阅读(389)
评论(0)
推荐(0)
摘要:
1. 使用@Component注解标记工具类MailUtil: 2. 使用@Autowired注入我们需要的bean: 3. 在工具类中编写init()函数,并使用@PostConstruct注解标记工具类,初始化Bean: @Component public class MailUtil { @A 阅读全文
posted @ 2020-01-23 19:25
yvioo
阅读(6350)
评论(0)
推荐(1)
摘要:
官网地址:https://docs.spring.io/spring-boot/docs/2.1.12.RELEASE/reference/html/using-boot-build-systems.html#using-boot-starter Table 13.1. Spring Boot ap 阅读全文
posted @ 2020-01-23 17:57
yvioo
阅读(317)
评论(0)
推荐(0)

浙公网安备 33010602011771号