jpa show-sql 的配置
在application.yml中添加:jpa:show-sql: trueproperties:hibernate:format_sql: true #格式化SQL,如果不加,SQL输出不换行,不方便查看在application.properties中添加:spring.jpa.show-sql=truespring.jpa.properties.hibernate.format_sql=true...
转载
2020-07-02 14:30:59 ·
10734 阅读 ·
2 评论