久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

web.xml 的虛假 Eclipse 警告:“未檢測到文檔的語法

Bogus Eclipse warning for web.xml: quot;No grammar constraints (DTD or XML schema) detected for the document.quot;(web.xml 的虛假 Eclipse 警告:“未檢測到文檔的語法約束(DTD 或 XML 模式).) - IT屋-程序員軟件開發技術分
本文介紹了web.xml 的虛假 Eclipse 警告:“未檢測到文檔的語法約束(DTD 或 XML 模式)."的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我的 web.xml 文件的頂部如下所示:

The top of my web.xml file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
    version="2.5">

但我仍然收到來自 Eclipse (Ganymede) 的警告,即未檢測到 XML 模式,并且沒有警告模式違規.我項目中的其他 XML 文件(例如 Spring Framework 配置文件)沒有警告,并且確實給出有關架構違規的正確警告.

But I still get the warning from Eclipse (Ganymede) that no XML schema is detected, and schema violations are not being warned about. Other XML files in my project (Spring Framework configuration files for example) don't have the warning and do give correct warnings about schema violations.

如何使架構檢查正常工作并希望警告消失?服務器運行正常.這似乎是一個 IDE 問題.

How do I get the schema checking working and hopefully the warning to go away? The server does run correctly. It just appears to be an IDE issue.

推薦答案

或許可以試試:

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd

代替:

http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd

<小時>

另外,<!DOCTYPE ...> 也不見了:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<web-app
  xmlns="http://java.sun.com/xml/ns/j2ee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  version="2.5">
  <!-- ... -->
</web-app>

這篇關于web.xml 的虛假 Eclipse 警告:“未檢測到文檔的語法約束(DTD 或 XML 模式)."的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數據庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 精品一二区 | www.av在线| 天堂中文字幕av | 特黄特色大片免费视频观看 | 性色的免费视频 | 影音av| 久久成人一区 | 日韩字幕一区 | 国产精品色av | 91网站在线看| 日韩av啪啪网站大全免费观看 | 欧美国产视频 | 91亚洲欧美| 国产精品久久久久不卡 | 国产精品一区二区在线 | 91视频在线观看 | 亚洲精品 在线播放 | 国产一区二区在线免费观看 | 日韩在线小视频 | 黄色av网站免费看 | 精品国产一区二区三区性色av | 亚洲精品中文字幕在线观看 | 色视频在线免费观看 | 国内精品伊人久久久久网站 | 日本高清中文字幕 | 国产在线一区观看 | 伊人网站| 日韩喷潮 | 精品亚洲永久免费精品 | 日本一区视频在线观看 | 久久久毛片| 久久亚洲国产精品 | 亚洲精品在线免费观看视频 | 伊人网站 | 成人在线不卡 | 最新一级毛片 | av片在线观看 | 一区二区三区免费在线观看 | 亚洲一区二区中文字幕 | 毛片免费在线观看 | 免费国产成人av |