Mybatis xml文件头

一、mybatis配置文件的文件头

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE configuration
3         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4         "http://mybatis.org/dtd/mybatis-3-config.dtd">

 

二、mybatis 映射文件的文件头

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE mapper
3 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

 

posted @ 2019-06-30 15:51  Actexpler  阅读(7190)  评论(0编辑  收藏  举报