在调试阶段,打印SQL会极大方便开发者。MyBatis有提供配置,只需要在MyBatis的配置文件mybatis-config.xml中<configuration>节点下,添加如下配置:

1     <settings>
2         <!-- SQL日志输出 -->
3         <setting name="logImpl" value="STDOUT_LOGGING" />
4     </settings>

 

相关文章:

  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2021-07-07
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
相关资源
相似解决方案