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

web.xml 的虛假 Eclipse 警告:“未檢測(cè)到文檔的語(yǔ)法

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

問(wèn)題描述

我的 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">

但我仍然收到來(lái)自 Eclipse (Ganymede) 的警告,即未檢測(cè)到 XML 模式,并且沒(méi)有警告模式違規(guī).我項(xiàng)目中的其他 XML 文件(例如 Spring Framework 配置文件)沒(méi)有警告,并且確實(shí)給出有關(guān)架構(gòu)違規(guī)的正確警告.

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.

如何使架構(gòu)檢查正常工作并希望警告消失?服務(wù)器運(yùn)行正常.這似乎是一個(gè) IDE 問(wèn)題.

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

<小時(shí)>

另外,<!DOCTYPE ...> 也不見(jiàn)了:

<?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>

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

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

相關(guān)文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環(huán)繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動(dòng)生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數(shù)據(jù)庫(kù))
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對(duì)象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 国产乱码精品一区二区三区忘忧草 | 亚洲日韩中文字幕一区 | 色综合欧美 | 精品国产乱码久久久久久牛牛 | 日韩中文字幕一区 | 久久久久国产视频 | 一a级片 | 亚洲视频中文字幕 | 中文字幕 亚洲一区 | 亚洲成人国产综合 | 午夜精品一区 | 中文字幕精 | 激情一区二区三区 | 日韩一 | 玖玖综合网| 久久国产高清 | 久久久www| 精品久久久久久久久久久久久 | www.亚洲国产精品 | 亚洲欧美在线一区 | 日韩精品在线视频免费观看 | 亚洲精品久久久蜜桃 | 91麻豆精品国产91久久久更新资源速度超快 | 国产精品v | 中文字幕 在线观看 | 日韩免费高清视频 | 91一区二区在线观看 | 久久一区精品 | 成人亚洲在线 | 性色av网站 | 福利片一区二区 | 亚洲在线一区 | 中文精品一区二区 | 日韩精品一区二区三区视频播放 | 国产一级一级 | 天天干天天操天天射 | 色欧美综合| 看片一区 | 夜夜艹 | 久久一区精品 | 久久乐国产精品 |