Java 应用程序。
private Properties additionalProperties() {
Properties properties = new Properties();
properties.setProperty("hibernate.dialect", "org.hibernate.dialect.MySQL5Dialect");
properties.setProperty("spring.jpa.show-sql", "true");
properties.setProperty("spring.jpa.properties.hibernate.format_sql", "true");
return properties;
}
如何记录所有变量。无法为休眠启用日志记录。我将首先尝试检查这些参数是否已写入应用程序。
使用以下代码获胜:
问题是由于他错误地拼写了属性的名称。