ssm使用全注解实现增删改查案例——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>
<settings>
<!-- 打印查询语句 -->
<setting name="logImpl" value="STDOUT_LOGGING" />
</settings>
<typeAliases>
<typeAlias alias="Emp" type="org.entity.Emp"/>
<typeAlias alias="Dept" type="org.entity.Dept"/>
</typeAliases>
<mappers>
<mapper class="org.dao.IEmpMapper"/>
<mapper class="org.dao.IDeptMapper"/>
</mappers>
</configuration>