-
Notifications
You must be signed in to change notification settings - Fork 34
/
sample.yaml
146 lines (129 loc) · 3.01 KB
/
sample.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Some comment
spring:
application:
name: test-engine
version: 0.0.1
profiles:
- dev
- test
- user
profiles.active: local
main:
web-environment: true
sleuth:
enabled: true
sampler:
percentage: 0.1
zipkin:
enabled: true
baseUrl: http://some-zipkin-server.com
sender:
type: web
jackson:
property-naming-strategy: CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES
server:
port: 8080
springfox:
documentation:
swagger:
v2:
path: /api/v1/api-docs
endpoints:
metrics:
enabled: false
prometheus:
path: metrics
info:
enabled: true
path: /api/info
allow-methods:
- GET
- HEAD
- OPTION
- POST
- PUT
- PATCH
- DELETE
health:
path: /api/health
sensitive: false
swagger:
title: Test Engine
servers:
- http://server1
- http://server2
- http://server3
description: Test Engine API
version: 0.0.1
termsOfServiceUrl:
license:
licenseUrl:
custom.rest.connection:
connection-request-timeout: 3000
connect-timeout: 3000
read-timeout: 3000
http-keep-alive-timeout : 3000
requestConfig:
connectTimeout: 60000
connectionRequestTimeout: 60000
socketTimeout: 60000
readTimeout: 60000
stTemplates:
firstTemplate: classpath:/rules/firstTemplate.st
secondTemplate: classpath:/rules/secondTemplate.st
rule_period:
transactionPeriod: '107000000'
extendEndDateLoginRule: '107000000'
extendStartDate: '000000000'
extendEndDate: '000000000'
management:
security:
enabled: false
roles:
- USER
- ADMIN
---
spring:
profiles: local
datasource:
dataSourceClassName: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
# url: jdbc:mysql://127.0.0.1:3306/demo?useUnicode=true&characterEncoding=utf8&noAccessToProcedureBodies=true
url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&noAccessToProcedureBodies=true
username: #username#
password: #password#
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
openInView: false
show_sql: false
generate-ddl: false
hibernate:
ddl-auto: none
naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy
hikari:
leakDetectionThreshold: 50
properties:
hibernate.cache.use_second_level_cache: false
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: false
---
spring:
profiles: test
datasource:
dataSourceClassName: org.h2.jdbcx.JdbcDataSource
url: jdbc:h2:mem:campaign_db;DB_CLOSE_DELAY=-1
username: wi
password:
jpa:
database-platform: org.hibernate.dialect.H2Dialect
database: H2
openInView: false
show_sql: false
generate-ddl: true
hibernate:
ddl-auto: create-drop
naming-strategy: org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy
properties:
hibernate.cache.use_second_level_cache: false
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: true