Skip to content

Instantly share code, notes, and snippets.

@cofemei
Created April 18, 2017 06:00
Show Gist options
  • Save cofemei/8cf4b0ded78a149a2cc1ee49d5bb2d23 to your computer and use it in GitHub Desktop.
Save cofemei/8cf4b0ded78a149a2cc1ee49d5bb2d23 to your computer and use it in GitHub Desktop.
applaction.yml
dataSource:
url: jdbc:mysql://127.0.0.1:3306/databases?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
my.cnf
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment