-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer-service.yml
114 lines (104 loc) · 3.13 KB
/
customer-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
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
spring:
application:
name: customer-service
datasource:
hikari:
connection-timeout: 60000
maximum-pool-size: 5
dbcp2:
test-while-idle: true
validationQuery: SELECT 1
timeBetweenEvictionRunsMillis: 60000
initialization-mode: always
tomcat:
max-wait: 15000
max-active: 50
test-on-borrow: true
jpa:
properties:
connection.characterEncoding: utf-8
connection.CharSet: utf-8
connection.useUnicode: true
hibernate:
dialect: org.hibernate.dialect.MySQL5Dialect
show-sql: false
hibernate:
ddl-auto: update
cloud:
stream:
bindings:
documentation-output-channel:
destination: ${kafka.topic.documentation}
log-output-channel:
destination: ${kafka.topic.log}
consul:
discovery:
tags:
- Spring Boot
- Resource Server
- Mysql
autoconfigure:
exclude:
- org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
- org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration
server:
port: 9070
servlet:
session:
cookie:
http-only: true
logging:
file: log/customer-service.log
---
spring:
profiles: dev
datasource:
url: ${jdbc.customer.url:${jdbc.url:jdbc:mysql://localhost:3306/ms-template?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC}}
username: ${jdbc.customer.username:${jdbc.username:root}}
password: ${jdbc.customer.password:${jdbc.password:admin}}
cloud:
consul:
config:
enable: false
host: localhost
port: 8500
discovery:
instanceId: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}}
preferIpAddress: false
---
spring:
profiles: test
datasource:
url: ${jdbc.customer.url:${jdbc.url:jdbc:mysql://localhost:3306/ms-template?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC}}
username: ${jdbc.customer.username:${jdbc.username:root}}
password: ${jdbc.customer.password:${jdbc.password:admin}}
cloud:
consul:
config:
enable: false
host: localhost
port: 8500
discovery:
instanceId: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}}
preferIpAddress: false
---
spring:
profiles: prod
datasource:
url: ${jdbc.customer.url:${jdbc.url:jdbc:mysql://mysql:3306/ms-template?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC}}
username: ${jdbc.customer.username:${jdbc.username:root}}
password: ${jdbc.customer.password:${jdbc.password:admin}}
cloud:
stream:
kafka:
binder:
brokers:
- kafka:9092
consul:
config:
enable: false
host: localhost
port: 8500
discovery:
instanceId: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}}
preferIpAddress: false