手動下載dtd文件並配置到myeclipse中

在myEclipse裏面配置struts2.xml的是後老是出現<?xml version="1.0" encoding="UTF-8" ?>報錯,而且寫標籤的時候沒有提示,後來發現時myeclipse裏面沒有引入http://struts.apache.org/dtds/struts-2.0.dtd,在網上找了好久終於找到引入dtd的方法:

在eclipse中 struts2配製文件中不支持提示,這時需要手工添加dtd的支持

Preferences -> MyEclipse Blue Edition -> Files and Editors -> XML -> XML Catalog -> Add

1)Location中找到struts2.0.dtd的地址
2)Key Type中選中URI
3)Key : 在struts.xml中找到dtd的地址:http://struts.apache.org/dtds/struts-2.0.dtd

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章