Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring javaMail IllegalStateException:无法加载指定的MIME类型映射文件_Java_Spring_Spring Boot_Jakarta Mail - Fatal编程技术网

Spring javaMail IllegalStateException:无法加载指定的MIME类型映射文件

Spring javaMail IllegalStateException:无法加载指定的MIME类型映射文件,java,spring,spring-boot,jakarta-mail,Java,Spring,Spring Boot,Jakarta Mail,使用Spring引导版本“1.5.17.RELEASE”和版本“4.3.20.RELEASE”中的Spring上下文支持,但我在Spring引导项目中遇到以下异常: java.lang.IllegalStateException: Could not load specified MIME type mapping file: class path resource [org/springframework/mail/javamail/mime.types]] wit

使用Spring引导版本“1.5.17.RELEASE”和版本“4.3.20.RELEASE”中的Spring上下文支持,但我在Spring引导项目中遇到以下异常:

    java.lang.IllegalStateException: Could not load specified MIME type 
    mapping file: class path resource 
    [org/springframework/mail/javamail/mime.types]] with root cause
    java.io.FileNotFoundException: class path resource 
    [org/springframework/mail/javamail/mime.types] cannot be opened because 
    it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.ja va:172) ~[spring-core-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
    at org.springframework.mail.javamail.ConfigurableMimeFileTypeMap.createFileTypeMap(ConfigurableMimeFileTypeMap.java:145) ~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
    at org.springframework.mail.javamail.ConfigurableMimeFileTypeMap.getFileTypeMap(ConfigurableMimeFileTypeMap.java:119) ~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
    at org.springframework.mail.javamail.ConfigurableMimeFileTypeMap.afterPropertiesSet(ConfigurableMimeFileTypeMap.java:106) ~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
    at org.springframework.mail.javamail.JavaMailSenderImpl.<init>(JavaMailSenderImpl.java:105) ~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
java.lang.IllegalStateException:无法加载指定的MIME类型
映射文件:类路径资源
[org/springframework/mail/javamail/mime.types]]带有根本原因
java.io.FileNotFoundException:类路径资源
无法打开[org/springframework/mail/javamail/mime.types],因为
它不存在于org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.ja va:172)~[spring-core-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
在org.springframework.mail.javamail.ConfigurableMefileTypeMap.createFileTypeMap(ConfigurableMefileTypeMap.java:145)~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
在org.springframework.mail.javamail.ConfigurableMefileTypeMap.getFileTypeMap(ConfigurableMefileTypeMap.java:119)~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
在org.springframework.mail.javamail.ConfigurableMefileTypeMap.afterPropertiesSet(ConfigurableMefileTypeMap.java:106)~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
在org.springframework.mail.javamail.JavaMailSenderImpl.(JavaMailSenderImpl.java:105)~[spring-context-support-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
如果您能支持我找出版本中是否存在不兼容,我将不胜感激?还是我缺少了另一种依赖