When we write Ibatis configuration file, we want to have the XML automatic prompt function. This requires us to add a DTD file
In the beginning of the Sqlmapconfig.xml, there is a sentence <! DOCTYPE sqlmapconfig Public "-//ibatis.com//dtd SQL Map Config 2.0//en" "http://www.ibatis.com/dtd/ Sql-map-config-2.dtd ">
<! DOCTYPE sqlmapconfig public
"-//ibatis.com//dtd SQL Map Config 2.0//en"
"http://www.ibatis.com/dtd/ Sql-map-config-2.dtd ">
1. Open Window-->preferences-->myeclipse-->files and Editors-->xml-->xml catalog in MyEclipse
If it's too cumbersome, search for XML directly in the search box above
2, click the Add button, pop-up dialog box
Localtion Add your DTD file path
Key Type is public ID
Key fills in the portion of the document's header, which is -//ibatis.com//dtd SQL Map Config 2.0//en
Ok
Try again in the XML just now
The cue message came out.
If not, check that the above configuration is correct or turn off the XML again
Sql-map-2.dtd ditto
Sql-map-config-2.dtd and SQL-MAP-2.DTD