mybatis-config.xml 634 B

1234567891011121314
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
  3. <configuration>
  4. <settings>
  5. <setting name="cacheEnabled" value="false" /><!-- 全局映射器启用缓存 -->
  6. <setting name="useGeneratedKeys" value="true" />
  7. <setting name="defaultExecutorType" value="REUSE" />
  8. <!-- 本地调试用,调试打印SQL -->
  9. <setting name="logImpl" value="STDOUT_LOGGING" />
  10. <!--线上发布用,日志打印SQL
  11. <setting name="logImpl" value="SLF4J" />-->
  12. </settings>
  13. </configuration>