一、问题
新springboot项目控制台日志,没有sql语句的打印,没有办法拿日志中的sql,直接查看问题所在。
二、解决方法
在application.yml文件中添加以下配置。
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
新springboot项目控制台日志,没有sql语句的打印,没有办法拿日志中的sql,直接查看问题所在。
在application.yml文件中添加以下配置。
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl