application.properties 加上配置
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
本文介绍如何通过application.properties文件中的配置来开启Spring JPA的SQL日志记录功能,并美化输出格式,便于开发者调试和追踪数据库操作。
application.properties 加上配置
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
6780

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