📜  spring data sql not utf8 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:25.211000             🧑  作者: Mango

代码示例1
// For full UTF-8 setup, the following should work

spring.datasource.url=jdbc:mysql://localhost/schemaName?useTimezone=true
&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8
  
// If using data.sql for data init. 
  
spring.datasource.sqlScriptEncoding=UTF-8