<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> spring: datasource: driverClassName: org.h2.Driver url: jdbc:h2:file:/tmp/mvp_mitsumori01 # username: sa password: jpa: hibernate.ddl-auto: validate # thymeleaf.cache: false mail: host: smtp.gmail.com port: 587 username: <googleのメールアドレス> password: <アプリパスワード> properties.mail.smtp