From 1b286fb39333538339c482be3c6a93c8bd0ebefe Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Tue, 11 Jul 2023 20:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.0=E3=80=91=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-local.yml | 11 +++-------- src/main/resources/application.yml | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 0f3deb5b..41b47c06 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -2,15 +2,10 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.31.221:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true + url: jdbc:mysql://localhost:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true username: root - password: root + password: 123456 # 连接池大小根据实际情况调整 max-active: 100 - max-pool-prepared-statement-per-connection-size: 100 - -devops: - serverHost: http://192.168.31.58:12909 - project-unique-code: Y4JdNfsfS2tjAQouFm1t035IAnsjSKG3 - project-interaction-secret-key: QBAttyH2ZkolwtkDcn0Y5b8HLGHEtOHC \ No newline at end of file + max-pool-prepared-statement-per-connection-size: 100 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 37e5aced..7681f549 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -23,7 +23,7 @@ spring: serialization: indent_output: false flyway: - enabled: false + enabled: true locations: classpath:db/migration/mysql # 当迁移时发现目标schema非空,而且带有没有元数据的表时,是否自动执行基准迁移 baseline-on-migrate: true