如Mybatis中使用DTD来验证XML
还可以在其发行包中org.apache.ibatis.builder.xml.dynamic中找到mybatis-3-config.dtd,mybatis-3-mapper.dtd,放到类路径下,然后将上面的头改成
或者
看路径啦
同时也可以这样来哦
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
还可以在其发行包中org.apache.ibatis.builder.xml.dynamic中找到mybatis-3-config.dtd,mybatis-3-mapper.dtd,放到类路径下,然后将上面的头改成
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"./mybatis-3-config.dtd">
或者
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"../../../../../mybatis-3-mapper.dtd">
看路径啦
同时也可以这样来哦
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"file:///d:/workspace/MyEclipseSSH/mybatis304/src/mybatis-3-mapper.dtd">
Myeclipse window - preferences - Myeclipse enterprise - Files and Editors - xml - xml catalog - Add