渡渡鸟
后端开发
·2024-02-01
今天运行老项目,出现了加载静态资源失败的问题 这是一个前后端不分离的SSM老项目,spring版本是4.1.3 jdk1.7 tomcat7 的超级老项目 运行的时候报 No converter found capable of converting from type java.util.ArrayList<?> to type org.springframework.core.io.Resource 我看了下报错的原因,是加载静态资源的时候,转换失败 2024-02-01 11:49:35 DEBUG org.springframework.beans.TypeConverterDelegate:296 - Original ConversionService attempt failed - ignored since PropertyEditor based conversion eventually succeeded org.springframework.core.convert.ConversionFailedException: Failed to convert from type java.util.ArrayList<?> to type java.util.List<org.springframework.core.io.Resource> for value '[/js/]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.util.ArrayList<?> to type org.springframework.core.io.Resource 据下面7个竞赛资源加载报转换错误,这个项目一样的代码在eclipse运行是可以的,但是idea是错误的,同样的环境,想问问各位大佬认为这是在配置idea是那步出错了(idea运行仅是加载资源不行,其他的都正常,由于前后端不分离,页面也访问不了) 技术 bug #提问#
0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
下载 APP