From 1832ebf973c95a0aa39b60a70cd74916cda0d048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Thu, 10 Oct 2024 12:30:59 +0800 Subject: [PATCH] =?UTF-8?q?doc(nacos):=20=E9=BB=98=E8=AE=A4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=93=BE=E6=8E=A5=E6=95=B0=E6=8D=AE=E5=BA=93=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=9C=80=E6=96=B0spring?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pig-register/src/main/resources/application.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pig-register/src/main/resources/application.yml b/pig-register/src/main/resources/application.yml index d26f598e..db861673 100644 --- a/pig-register/src/main/resources/application.yml +++ b/pig-register/src/main/resources/application.yml @@ -31,8 +31,6 @@ nacos: spring: application: name: @project.artifactId@ - datasource: - platform: mysql #这个过期属性不能修改,nacos 代码对此有硬编码 security: enabled: true boot: # 接入 spring boot admin @@ -43,6 +41,9 @@ spring: password: pig instance: service-host-type: ip + sql: + init: + platform: mysql useAddressServer: true