課程
/后端開發(fā)
/Java
/Spring Boot 發(fā)送郵件
SimpleMessage
這個方面里面沒有set方法,而且架包跟他的不一樣
2019-05-22
源自:Spring Boot 發(fā)送郵件 2-4
正在回答
<dependencies> ????<dependency> ????????<groupId>org.springframework.boot</groupId> ????????<artifactId>spring-boot-starter-mail</artifactId> ????</dependency> ????<dependency> ????????<groupId>org.springframework.boot</groupId> ????????<artifactId>spring-boot-starter-test</artifactId> ????????<scope>test</scope> ????</dependency> </dependencies>
pom.xml里的 <!--?https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-mail?--> <dependency> ???<groupId>org.springframework.boot</groupId> ???<artifactId>spring-boot-starter-mail</artifactId> ???<version>2.1.3.RELEASE</version> </dependency>
import導入的 import?org.springframework.mail.SimpleMailMessage; 可以看一下有沒有導入錯的
舉報
通過這個課程你將學會如何通過 Spring Boot 設(shè)計郵件系統(tǒng)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2019-06-23
2019-05-30