|
|
@@ -125,13 +125,10 @@ kubectl get svc java-microservice
|
|
|
#### Properties文件配置(`.properties` 格式)
|
|
|
|
|
|
```yaml
|
|
|
-config.properties:
|
|
|
- spring.application.name: java-microservice
|
|
|
- spring.jpa.hibernate.ddl-auto: update
|
|
|
- spring.datasource.url: jdbc:mysql://localhost:3306/mydb
|
|
|
- spring.datasource.username: root
|
|
|
- spring.datasource.password: password
|
|
|
- server.port: "8080"
|
|
|
+application.properties:
|
|
|
+spring.application.name={{ app.name }}
|
|
|
+spring.protocol.name=spring
|
|
|
+server.port={{ app.port }}
|
|
|
```
|
|
|
|
|
|
#### YAML文件配置(`.yml` 格式)
|