使用mail老是报空指针,但是pom文件中导入了对应坐标。配置文件也没错
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
配置文件
测试类
我以为倒错包了,但是换了maven中的其他也不行
请问一下怎么在spring boot使用mail
MailTest类截图,你直接发代码块是没有代码行号的。