Spring Boot项目JPA配置项format-sql不生效的情况


Spring Boot项目的application.properties/application.yml配置文件中,JPA打印SQL日志格式化输出配置项spring.jpa.properties.hibernate.format-sql=true不生效,需要改为spring.jpa.properties.hibernate.format_sql=true才有效果。
附上个别JPA相关配置项:

spring.jpa.database-platform=org.hibernate.dialect.SQLServer2012Dialect
spring.jpa.open-in-view=false
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM