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> <settings> <!-- 打印查询语句 --> <setting name="logImpl" value="STDOUT_LOGGING" /> </settings> <typeAliases> <!-- 类名 --> <typeAlias alias="Student" type="com.ssh.entity.StudentEntity" /> </typeAliases> <!-- mapper --> <mappers> <mapper resource="com/ssh/sqlmap/CommonMapper.xml" /> </mappers> </configuration>