2013-06-02 64 views
2

當我正想通過與春季瓷磚整合,首先我一直在classpath中我的瓷磚清晰度,使項目更導致如出現以下異常清潔:Spring MVC和Tiles定義路徑

SEVERE: Servlet.service() for servlet [superlite] in context with path [/Superlite] threw exception [Could not resolve view with name 'home' in servlet with name 'superlite'] with root cause 
javax.servlet.ServletException: Could not resolve view with name 'home' in servlet with name 'superlite' 
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1190) 
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992) 

servlet容器無法看到圖塊定義。 所以,我遷移到常用的目錄結構:/WEB-INF/defs/tiles.xml ..工作非常好。 我的好奇心是發生了什麼事情,以致於當我在classpath中配置tiles-definition時,servlet容器無法看到圖塊定義。有什麼解決方案可以將類定義保存在classpath中。

如果有人能夠幫助我解決這個問題,這將對我很有幫助,這樣我就可以在晚上睡得好。

+0

您在非工作解決方案中使用了什麼值? – kryger

+0

我使用了'/ WEB-INF/jsp/components/header.jspf'類型的值來定義網頁模板。 –

回答