hibernate 中如何在控制台查看打印的sql语句?

千锋教育

需要在配置文件中进行如下配置: 


spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.use_sql_comments=true