1 Star 0 Fork 0

jeffzhang/spring-petclinic-microservices-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
application.yml 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
Antoine Rey 提交于 2022-12-26 00:25 +08:00 . Spring Boot configuration migration
# COMMON APPLICATION PROPERTIES
server:
# start services on random port by default
port: 0
# The stop processing uses a timeout which provides a grace period during which existing requests will be allowed to complete but no new requests will be permitted
shutdown: graceful
# embedded database init, supports mysql too trough the 'mysql' spring profile
spring:
sql:
init:
schema-locations: classpath*:db/hsqldb/schema.sql
data-locations: classpath*:db/hsqldb/data.sql
sleuth:
sampler:
probability: 1.0
cloud:
config:
# Allow the microservices to override the remote properties with their own System properties or config file
allow-override: true
# Override configuration with any local property source
override-none: true
jpa:
open-in-view: false
hibernate:
ddl-auto: none
# Spring Boot 1.5 makes actuator secure by default
management.security.enabled: false
# Enable all Actuators and not only the two available by default /health and /info starting Spring Boot 2.0
management.endpoints.web.exposure.include: "*"
# Temporary hack required by the Spring Boot 2 / Spring Cloud Finchley branch
# Waiting issue https://github.com/spring-projects/spring-boot/issues/13042
spring.cloud.refresh.refreshable: false
# Logging
logging.level.org.springframework: INFO
# Metrics
management:
endpoint:
metrics:
enabled: true
prometheus:
enabled: true
endpoints:
web:
exposure:
include: '*'
metrics:
export:
prometheus:
enabled: true
# Chaos Engineering
---
spring:
config:
activate:
on-profile: chaos-monkey
management.endpoint.chaosmonkey.enabled: true
chaos:
monkey:
enabled: true
watcher:
component: false
controller: false
repository: false
rest-controller: false
service: false
---
spring:
config:
activate:
on-profile: mysql
datasource:
url: jdbc:mysql://localhost:3306/petclinic?useSSL=false
username: root
password: petclinic
sql:
init:
schema-locations: classpath*:db/mysql/schema.sql
data-locations: classpath*:db/mysql/data.sql
init: ALWAYS
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shihang/spring-petclinic-microservices-config.git
git@gitee.com:shihang/spring-petclinic-microservices-config.git
shihang
spring-petclinic-microservices-config
spring-petclinic-microservices-config
main

搜索帮助