Browse Source

Move mysql specify config to github profile

ZhangJian He 2 năm trước cách đây
mục cha
commit
8418434c8f

+ 1 - 0
apollo-adminservice/src/main/resources/application-github.properties

@@ -14,6 +14,7 @@
 # limitations under the License.
 #
 # DataSource
+spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4
 spring.datasource.url = ${spring_datasource_url}
 spring.datasource.username = ${spring_datasource_username}
 spring.datasource.password = ${spring_datasource_password}

+ 0 - 4
apollo-common/src/main/resources/application.yaml

@@ -31,10 +31,6 @@ spring:
   mvc:
     converters:
       preferred-json-mapper: gson
-  # DataSource
-  datasource:
-    hikari:
-      connectionInitSql: set names utf8mb4
 
 # Tomcat configuration
 server:

+ 1 - 0
apollo-configservice/src/main/resources/application-github.properties

@@ -14,6 +14,7 @@
 # limitations under the License.
 #
 # DataSource
+spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4
 spring.datasource.url = ${spring_datasource_url}
 spring.datasource.username = ${spring_datasource_username}
 spring.datasource.password = ${spring_datasource_password}

+ 1 - 0
apollo-portal/src/main/resources/application-github.properties

@@ -14,6 +14,7 @@
 # limitations under the License.
 #
 # DataSource
+spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4
 spring.datasource.url = ${spring_datasource_url}
 spring.datasource.username = ${spring_datasource_username}
 spring.datasource.password = ${spring_datasource_password}