mybatis-config.xml配置文件中加入settings部分html
<?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="logPrefix" value="daoLog."/> </settings> </configuration>
<logger name="daoLog" level="debug" additivity="false"> <appender-ref ref="stdout"/> </logger>
http://www.cnblogs.com/beiyeren/p/4196134.htmlmybatis