spring-boot-admin 邮件通知

1、首先,加入email依赖

        
        
            org.springframework.boot
            spring-boot-starter-mail
        

2、增加配置

spring:
  mail:
    host: smtp.163.com
    username: [email protected]
    password: 客户端授权码
  boot:
    admin:
      notify:
        mail:
          enabled: true
          to: 要发送的邮箱
          from: [email protected]

 

你可能感兴趣的:(spring-boot-admin 邮件通知)