pom.xml配置
org.springframework.boot spring-boot-starter-mail
导入后显示
301 Moved Permanently 301 Moved Permanently
Powered by Tenginetengine
将上面配置删除 换成下面的配置
4.0.0 org.springframework.boot spring-boot-starter-mail2.5.3 spring-boot-starter-mail Starter for using Java Mail and Spring framework's email sending support https://spring.io/projects/spring-boot Pivotal Software, Inc. https://spring.io Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0 Pivotal info@pivotal.io Pivotal Software, Inc. https://www.spring.io scm:git:git://github.com/spring-projects/spring-boot.git scm:git:ssh://git@github.com/spring-projects/spring-boot.git https://github.com/spring-projects/spring-boot GitHub https://github.com/spring-projects/spring-boot/issues org.springframework.boot spring-boot-starter2.5.3 compile org.springframework spring-context-support5.3.9 compile com.sun.mail jakarta.mail1.6.7 compile
换完之后将pom.xml中配置重新import change才能生效



