java.lang.NoClassDefFoundError: javax/mail/Authenticator

缺少activation.jar包和mail.jar包

activation.jar下载地址:

http://repo1.maven.org/maven2/javax/activation/activation/1.1/activation-1.1.jar

mail.jar包下载地址:

http://repo1.maven.org/maven2/javax/mail/mail/1.4/mail-1.4.jar

下载后放入TOMCAT_HOME/lib目录下,TOMCAT_HOME是tomcat的安装目录,然后重启tomcat即可

你可能感兴趣的:(职场,休闲)