【发布时间】:2015-07-15 16:11:06
【问题描述】:
我正在使用 Spring Boot 应用程序,尽管我指示 Hibernate 在 UTF-8 中创建新表,但所有新表都在 latin1 中。
spring.jpa.properties.hibernate.connection.characterEncoding=utf-8
spring.jpa.properties.hibernate.connection.CharSet=utf-8
spring.jpa.properties.hibernate.connection.useUnicode=true
我正在使用 Hikari。
【问题讨论】:
-
我认为您必须在数据库级别进行此设置
-
我正在调查。但是找不到明确的答案
标签: mysql hibernate utf-8 spring-boot