Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

springboot + mybatis 打印SQL日志到控制台 #105

Open
jwenjian opened this issue Sep 13, 2019 · 0 comments
Open

springboot + mybatis 打印SQL日志到控制台 #105

jwenjian opened this issue Sep 13, 2019 · 0 comments

Comments

@jwenjian
Copy link
Owner

配置 mybatis-springboot-starter, 在控制台上打印出 mybatis 生成的 SQL 语句, 用于调试.

⚠️ 不适用于生产环境.


application.properties:

mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant