springboot_+jpa 控制台输出sql

Posted on 2019-03-29 09:27  写程序到老  阅读(15456)  评论(2)    收藏  举报

项目是使用springboot+jpa  想在控制台输出格式化的sql,总是无效,最终

spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
这样配置之后才起作用。

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3