接口用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