hibernate logging
## print all generated SQL to the console
hibernate.show_sql true
## format SQL in log and console
hibernate.format_sql true
## add comments to the generated SQL
hibernate.use_sql_comments true
本文介绍了如何通过配置Hibernate来在控制台打印所有生成的SQL语句,并格式化这些SQL语句以便于阅读,同时还可以为生成的SQL添加注释。
hibernate logging
## print all generated SQL to the console
hibernate.show_sql true
## format SQL in log and console
hibernate.format_sql true
## add comments to the generated SQL
hibernate.use_sql_comments true

被折叠的 条评论
为什么被折叠?