Spring-Boot, Can't save unicode string in MySql using spring-data JPA

前端 未结 6 1410
一整个雨季
一整个雨季 2020-12-20 18:04

I have my application.properties set up like this :

spring.datasource.username = root
spring.datasource.password = root
spring.datasource.url =         


        
6条回答
  •  离开以前
    2020-12-20 18:24

    See "question marks" in http://stackoverflow.com/questions/38363566/trouble-with-utf8-characters-what-i-see-is-not-what-i-stored .

    Also,

    ⚈  spring.jpa.properties.hibernate.connection.characterEncoding=utf-8 
    ⚈  spring.jpa.properties.hibernate.connection.CharSet=utf-8 
    ⚈  spring.jpa.properties.hibernate.connection.useUnicode=true 
    

提交回复
热议问题