在controller里返回前台界面时,注意文件路径,名称的大小写一定要一致。
linux下文件大小写不一致,会认为是不同的文件,导致无法访问。
windows下没有问题,所以正式部署时出现这种问题不好排查。
这个问题太坑爹了!!!
报错信息:
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'views\customerlist/seaCustList.html'
at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:474) ~[velocity-1.7.jar:1.7]
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352) ~[velocity-1.7.jar:1.7]
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1533) ~[velocity-1.7.jar:1.7]
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1514) ~[velocity-1.7.jar:1.7]
at org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:299) ~[velocity-1.7.jar:1.7]
at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:358) ~[velocity-1.7.jar:1.7]
原因:

2852

被折叠的 条评论
为什么被折叠?



