Maven 上有多个 JavaMail 的库。到底用哪个呢?
[b]一、问题:[/b]
如果下载过时的库,会有与 javaee 中的库冲突的问题。
[b]二、结论:[/b]
使用这个: https://mvnrepository.com/artifact/com.sun.mail/javax.mail
[b]三、说明:[/b]
[b]JavaMail API from Maven[/b]
[quote]
I am trying to upgrade to latest Java Mail utility.
From
[b]一、问题:[/b]
如果下载过时的库,会有与 javaee 中的库冲突的问题。
[b]二、结论:[/b]
使用这个: https://mvnrepository.com/artifact/com.sun.mail/javax.mail
<!-- https://mvnrepository.com/artifact/com.sun.mail/javax.mail -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.5.6</version>
</dependency>
[b]三、说明:[/b]
[b]JavaMail API from Maven[/b]
[quote]
I am trying to upgrade to latest Java Mail utility.
From
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>