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