Quellcode durchsuchen

fix database secret

pengdi vor 1 Jahr
Ursprung
Commit
90f7627350
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      coupon-user-service-dev.yml

+ 4 - 3
coupon-user-service-dev.yml

@@ -2,7 +2,8 @@ server:
   port: 20002
 #  servlet:
 #    context-path: /coupon-user
-
+database: 
+  password: '{cipher}AQAgL+vJUZpuPYDISV66dhFiIglUoO7M7RLpwt6qTjW8wPdRaYW2gjMyAp3090Mjo4/3yDJdioze+TfM/EXJWLouDw82JRL77c6qtaNmoSYgepAoUXCjuAu1XmuTZppeU2cfdJpZ7xhHLF3Sy1jk3KyQ1yG+OYE2BLN4Lg0p5unlEI2KQin469J4pDQBRz5Bsc3/N/bEtRvv9wvFNzCFzCKW+RYludh4hrrMdffgjzcooYPYmhRB4Mo32v75s91nzh68aI6BzSiCR4flQqwkWSFToxxsO1LneAvsMShR3cx69J50KTeESIj2TntTdwfEXRwa5sfk70+rm/leTpuby79hR/StmpvX4FOULLVL9HF/DHuQN9j5sWCrfnYDIUcaclU='
 spring:
   rabbitmq:
     host: localhost
@@ -23,8 +24,8 @@ spring:
   datasource:
     # 数据源
     url: jdbc:mysql://127.0.0.1:3306/broadview_coupon_db?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC
-    username: canal
-    password: canal
+    username: root
+    password: ${database.password}
     type: com.zaxxer.hikari.HikariDataSource
     driver-class-name: com.mysql.cj.jdbc.Driver
     # 连接池