1. 程式人生 > >mybatis配置檔案頭部宣告

mybatis配置檔案頭部宣告

mybatis 的配置檔案頂部的申明,否則,啟動時候報錯org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 49; 文件根元素 "mapper" 必須匹配 DOCTYPE 根 "null"

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