-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathrest-book.yml
86 lines (80 loc) · 1.47 KB
/
rest-book.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
server:
port: 8082
servlet:
context-path: /v1
spring:
## The most important feature... ever
banner:
location=classpath:/banner.txt
datasource:
url: jdbc:postgresql://localhost:5432/books_database
username: book
password: book
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate:
ddl-auto: create-drop
cloud:
circuitbreaker:
resilience4j:
enabled: true
application:
name: rest-book
zipkin:
base-url: http://localhost:9411
sender:
type: web
management:
tracing:
sampling:
probability: 1.0
metrics:
distribution:
percentiles-histogram:
http:
server:
requests: true
endpoints:
enabled-by-default: true
web:
exposure:
include: '*'
jmx:
exposure:
include: '*'
endpoint:
health:
show-details: always
enabled: true
probes:
enabled: true
shutdown:
enabled: true
prometheus:
enabled: true
metrics:
enabled: true
health:
livenessstate:
enabled: true
readinessstate:
enabled: true
datasource:
enabled: true
springdoc:
api-docs:
enabled: true
writer-with-default-pretty-printer: true
booknumbers:
api:
url: http://127.0.0.1:8081/v1/isbns
timeout_sec: 2
# Default values
logging:
level:
org:
hibernate:
stat: info
type: info
springframework:
web: info