-
Notifications
You must be signed in to change notification settings - Fork 0
/
product-service.yml
64 lines (61 loc) · 1.39 KB
/
product-service.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
eureka:
client:
serviceUrl:
defaultZone: http://eureka:password@localhost:9102/eureka/
logging:
level:
org:
springframework:
security: DEBUG
#management:
# endpoint:
# health:
# show-details: always
# endpoints:
# web:
# exposure:
# include: *
# health:
# circuitbreakers:
# enabled: true
#Resilience4j Properties
resilience4j:
circuitbreaker:
instances:
inventory:
registerHealIndicator: true
event-consumer-buffer-size: 10
slidingWindowType: COUNT_BASED
slidingWindowSize: 5
failureRateThreshold: 50
waitDurationInOpenState: 5s
permittedNumberOfCallsInHalfOpenState: 3
automaticTransitionFromOpenToHalfOpenEnabled: true
spring:
datasource:
password: root
url: jdbc:mysql://localhost:3306/product_service?useSSL=false&allowPublicKeyRetrieval=true
username: root
jpa:
defer-datasource-initialization: true
hibernate:
ddl-auto: create
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
format_sql: false
show-sql: false
security:
oauth2:
resourceserver:
jwt:
issuer-uri: http://localhost:8181/realms/starshipshop-realm
sleuth:
sampler:
probability: 1.0
sql:
init:
mode: always
platform: mysql
zipkin:
base-url: http://localhost:9411