Turn off hibernate logging to console

后端 未结 5 1317
死守一世寂寞
死守一世寂寞 2020-12-30 02:01

When running my Spring/Hibernate application I see the following unwanted output on the console:

Hibernate: select securityus0_.ID ....
Hibernate: select sec         


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-30 03:08

    Set the below to false in applications.properties file:

    spring.jpa.show-sql=false
    

    it will turn off Hibernation messages.

提交回复
热议问题