是的,有可能。这就是该hibernate.show_sql
物业的作用。您还可以使用日志记录配置更好地控制:
org.hibernate.sql Log all sql DML statements as they are executed
org.hibernate.type Log all JDBC parameters
org.hibernate.tool.hbm2ddl Log all sql DDL statements as they are executed