After having to change from javax.mail to jakarta.mail, my application fails to start because of "Provider for jakarta.activation.spi.MimeTypeRegistryProvider cannot be found". What is a MimeTypeRegistryProvider, and how can I add one?
AddAngus Mail Provider to your classpath.
For maven, add the following dependency to your pom.xml
<dependency>
<groupId>org.eclipse.angus</groupId>
<artifactId>angus-mail</artifactId>
</dependency>
You need to add the angus-activation-1.1.0.jar and angus-mail-1.1.0.jar packages.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.