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

前端 未结 6 1382
一整个雨季
一整个雨季 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:39

    In your /etc/mysql/my.cnf file change the following.

    [mysql]
    default-character-set=utf8
    [mysqld]
    character-set-server=utf8
    

提交回复
热议问题