首页 > 编程语言 >文件上传MultipartFile异常java.lang.NoClassDefFoundError: javax/mail/internet/MimeUtility

文件上传MultipartFile异常java.lang.NoClassDefFoundError: javax/mail/internet/MimeUtility

时间:2022-12-09 23:12:48浏览次数:48  
标签:lang MimeUtility java NoClassDefFoundError internet mail javax

接口用MultipartFile接收文件,突然有天报了个org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.NoClassDefFoundError: javax/mail/internet/MimeUtility,排查一番不清楚啥问题,代码中未引用这个类,引入这个依赖包就好了

<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>

,暂不知什么原因,记录一下

标签:lang,MimeUtility,java,NoClassDefFoundError,internet,mail,javax
From: https://www.cnblogs.com/hmycl/p/16970487.html

相关文章