From 8cddc05cbf0563fba74161e841dbfc18263a60c2 Mon Sep 17 00:00:00 2001 From: whz <303054730@qq.com> Date: Tue, 4 Jun 2024 08:31:29 +0800 Subject: [PATCH] fix --- docker-compose.yml | 2 +- src/main/resources/application-prod.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cd2ea84..91e1efb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: restart: always environment: MYSQL_ROOT_PASSWORD: example - MYSQL_DATABASE: mydb + MYSQL_DATABASE: paopao MYSQL_USER: myuser MYSQL_PASSWORD: mypassword volumes: diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 15ab256..d51f950 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -8,8 +8,8 @@ spring: datasource: url: jdbc:mysql://db:3306/paopao?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true # MySQL连接URL,paopao是数据库名 driverClassName: com.mysql.cj.jdbc.Driver # MySQL的Driver类名 - username: root # MySQL用户名 - password: root # MySQL密码 + username: myuser # MySQL用户名 + password: mypassword # MySQL密码 jpa: show-sql: true