This commit is contained in:
whz 2024-06-04 08:31:29 +08:00
parent 1c572e9c8d
commit 8cddc05cbf
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ services:
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: example MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: mydb MYSQL_DATABASE: paopao
MYSQL_USER: myuser MYSQL_USER: myuser
MYSQL_PASSWORD: mypassword MYSQL_PASSWORD: mypassword
volumes: volumes:

View File

@ -8,8 +8,8 @@ spring:
datasource: datasource:
url: jdbc:mysql://db:3306/paopao?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true # MySQL连接URLpaopao是数据库名 url: jdbc:mysql://db:3306/paopao?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true # MySQL连接URLpaopao是数据库名
driverClassName: com.mysql.cj.jdbc.Driver # MySQL的Driver类名 driverClassName: com.mysql.cj.jdbc.Driver # MySQL的Driver类名
username: root # MySQL用户名 username: myuser # MySQL用户名
password: root # MySQL密码 password: mypassword # MySQL密码
jpa: jpa:
show-sql: true show-sql: true