项目是使用springboot+jpa 想在控制台输出格式化的sql,总是无效,最终
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
这样配置之后才起作用。
项目是使用springboot+jpa 想在控制台输出格式化的sql,总是无效,最终
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
这样配置之后才起作用。
本文来自博客园,作者:xiao~xiao,转载请注明原文链接:https://www.cnblogs.com/angin-iit/p/10619234.html