ibatis配置文件中DOCTYPE的问题

sql-map-config.xml中:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
    "http://www.ibatis.com/dtd/sql-map-config-2.dtd">

 

Employee.xml中:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">

  

写Employee.xml时写成sqlMapConfig ,会报错:

Document root element "sqlMap", must match DOCTYPE root "sqlMapConfig

 

 

 

 

你可能感兴趣的:(DOCTYPE)