2014-01-16 52 views
-1

我正在使用IntelliJ IDEA 13開發Spring MVC Web應用程序。 當我在web.xml定義默認的錯誤頁面位置這樣IntelliJ IDEA「Web.xml錯誤」檢查「無法解析符號」for web.xml中的錯誤頁面位置元素

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" 
     version="3.1"> 
    <error-page> 
     <error-code>404</error-code> 
     <location>/error-404</location> 
    </error-page> 
</web-app> 

位置屬性的值被高亮顯示爲示出在下面的截圖:

expanded inspection information

路徑/錯誤404似乎被IDEA識別,因爲彈簧工具窗口顯示映射:

path is recognized by IDEA

查看IDEA-30229,我認爲IDEA應該支持路徑作爲位置標記的值。

如何防止此檢查彈出(當然不禁用它)?

回答

1

請提交bug報告http://youtrack.jetbrains.com/issues/IDEA並提供您的web.xml和dispatcher-servlet.xml文件。謝謝。

+0

我使用帶註釋的控制器。我創建了一個問題([link](http://youtrack.jetbrains.com/issue/IDEA-120692)),幷包含一個示例項目。 –