diff --git a/apollo-common/src/main/resources/application.properties b/apollo-common/src/main/resources/application.properties index b0e2f912fe6faadab2b323978fb6de006ae60105..eda8ab06b83d14c48c9bdf79d204b413629445de 100644 --- a/apollo-common/src/main/resources/application.properties +++ b/apollo-common/src/main/resources/application.properties @@ -4,6 +4,7 @@ spring.http.converters.preferred-json-mapper=gson spring.datasource.testWhileIdle=true spring.datasource.testOnBorrow=true spring.datasource.validationQuery=SELECT 1 +spring.datasource.initSQL=set names utf8mb4 # Naming strategy spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy diff --git a/apollo-common/src/main/resources/datasource.xml b/apollo-common/src/main/resources/datasource.xml new file mode 100644 index 0000000000000000000000000000000000000000..32491f77426df1e85990b20283c7c5916eda5ab3 --- /dev/null +++ b/apollo-common/src/main/resources/datasource.xml @@ -0,0 +1,24 @@ + + + +