🐛 修复不同操作系统, 可能出现的编码问题, 导致导入的数据库文件乱码.

This commit is contained in:
zhaojun1998
2020-02-18 20:09:32 +08:00
parent d4c843f5f5
commit 208da95234

View File

@@ -17,6 +17,8 @@ spring:
datasource:
# 初始化数据导入
data: classpath*:db/data.sql
sql-script-encoding: utf-8
initialization-mode: always
continue-on-error: true
@@ -27,7 +29,7 @@ spring:
password: 123456
# MySQL 配置
# driver-class-name: com.mysql.jdbc.Driver
# driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://127.0.0.1:3306/zfile?characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
# username: root
# password: 123456
@@ -46,6 +48,10 @@ spring:
gzipped: true
profiles:
active: prod
boot:
admin:
context-path: /act
zfile:
cache:
timeout: 300
@@ -69,4 +75,7 @@ jetcache:
local:
default:
type: caffeine
keyConvertor: fastjson
keyConvertor: fastjson