mybatis-config.xml 配置文件

<?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">
<configuration>

<typeAliases>
<package name="com.hzh.pojo"/>
</typeAliases>

<mappers>
<mapper resource="com/hzh/dao/BookMapper.xml"/>
</mappers>
</configuration>
上一篇:http://mybatis.org/dtd/mybatis-3-mapper.dtd 报红色


下一篇:Java基础——XML