ResourceManager : unable to find resource '/yicheng/index.html.vm' in any resource loader.
2018-02-14 15:10
656 查看
问题记录:
控制台的日志报错:ResourceManager : unable to find resource '/yicheng/index.html.vm' in any resource loader.
但是不影响运行。
分析:报这个错误是因为项目中配置了多个视图,比如velocity,freemake,ContentNegotiatingViewResolver,这个时候就有哪个视图先处理的问题,报这个错误就是因为ContentNegotiatingViewResolver先处理了,加了后缀html,然后有加vm,然后就找不到对应的文件了。
其实就是配置的视图顺序问题,加个<property name="order" value="2"/> 处理一下就可以了
控制台的日志报错:ResourceManager : unable to find resource '/yicheng/index.html.vm' in any resource loader.
但是不影响运行。
分析:报这个错误是因为项目中配置了多个视图,比如velocity,freemake,ContentNegotiatingViewResolver,这个时候就有哪个视图先处理的问题,报这个错误就是因为ContentNegotiatingViewResolver先处理了,加了后缀html,然后有加vm,然后就找不到对应的文件了。
其实就是配置的视图顺序问题,加个<property name="order" value="2"/> 处理一下就可以了
相关文章推荐
- SpringMVC运行报错 unable to find resource 'XXX.vm' in any resource loader
- [error] ResourceManager : unable to find resource ‘VM_global_library.vm’ in any resource loader.
- [error]ResourceManager : unable to find resource 'VM_global_library.vm' in any reso
- Smarty error: unable to read resource: "result.html" in Smarty.class.php on line 1093
- Failed to load resource in my index.html Page
- Error: Unable to find manifest signing certificate in the certificate store
- android.content.res.Resources$NotFoundException: Unable to find resource ID 0#0xffffffff
- HADOOP:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Unable to locate tools.jar. Expected to find it in C:/Program Files/Java/jre
- Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope 问题
- 报Unable to find debug key in keystore!错的原因
- easyhadoop:failed to open stream:Permission denied in /var/www/html/index.php
- linux启动tomcat Cannot find any VM inJava Home /usr
- [转]错误提示是:Unable to find manifest signing certificate in the certificate store
- WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-
- NVelocity错误 Unable to find resource
- Unable to find any valid VSS installtion错误
- xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
- Android中出现Error:In (declare-styleable) FontFamilyFont, unable to find attribute android:font
- WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-