错误描述
利用webservice生成xml后在调用端调用时爆出警告 警告:
Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart)
解决方法
在pom文件中加入依赖:
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
<!-- 邮件start -->
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
<!-- 邮件end -->
网友评论