diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e23b78a..b475fd4 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,7 +1,7 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:mysql://localhost:3306/full-stack-ecommerce?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&serverTimezone=UTC -spring.datasource.username=ecommerceapp -spring.datasource.password=Phanhuuloi2@@1 +spring.datasource.url=jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_NAME}?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&serverTimezone=UTC +spring.datasource.username=${DB_USERNAME} +spring.datasource.password=${DB_PASSWORD} spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect