Mybatis配置文件内容
头文件及框架内容
1,这是mybatis的
<?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>
</configuration>
内容
写在configuration中,用于配置别名,其他的配置写在了Spring中
<typeAliases>
<!--这里给实体类取别名,方便在mapper配置文件中使用-->
<package name="entity"/>
</typeAliases>

浙公网安备 33010602011771号