diff --git a/kspider-web/src/main/resources/config/application.yaml b/kspider-web/src/main/resources/config/application.yaml index becce30..e964349 100644 --- a/kspider-web/src/main/resources/config/application.yaml +++ b/kspider-web/src/main/resources/config/application.yaml @@ -24,9 +24,9 @@ spring: date-format: yyyy-MM-dd HH:mm:ss # datasource datasource: - url: jdbc:mysql://${MYSQL_ROOT_ADDRESS}:${MYSQL_PORT}/kspider?createDatabaseIfNotExist=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&useSSL=true - username: ${MYSQL_ROOT_USERNAME} - password: ${MYSQL_ROOT_PASSWORD} + url: jdbc:mysql://${DB_HOST}:${DB_PORT}/kspider?createDatabaseIfNotExist=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&useSSL=true + username: ${DB_ROOT_USERNAME} + password: ${DB_ROOT_PASSWORD} driver-class-name: com.mysql.cj.jdbc.Driver # jpa jpa: