spring 报错
贴码
1 | 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 '[/img/]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type org.springframework.core.io.Resource |
总结
我在springmvc.xml配置了mvc:resoure,配置信息如下:
<mvc:resources location="/js/" mapping="/js/**"/>
<mvc:resources location="/img/" mapping="/img/**"/>
如上错误 ,用的是spring3.2的包,程序运行没问题,静态资源可以加载,但是不知道怎么会报这个错,求问怎么解决???
网上找不到解决的办法。求好心人能帮忙解答