-
Notifications
You must be signed in to change notification settings - Fork 0
/
microservicecloud-config-dept-client.yml
95 lines (80 loc) · 2.36 KB
/
microservicecloud-config-dept-client.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
spring:
profiles:
active:
- dev
---
server:
port: 9005
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml
type-aliases-package: com.atguigu.springcloud.entities
mapper-locations:
- classpath:mybatis/mapper/**/*.xml
spring:
profiles: dev
application:
name: microservicecloud-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/cloudDB03?useSSL=false&serverTimezone=GMT%2B8
username: root
password: 1a2s3d4f
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
eureka:
client:
service-url:
defaultZone: http://eurekaserver7004:7004/eureka
instance:
#appname: deptservice #指定微服务实例名称,可以覆盖spring.application.name
instance-id: microservicecloud-dept9005 #实例ID
prefer-ip-address: true #优先使用ip地址访问服务,否则优先hostname
hostname: localhost #指定域名
#ip-address: 127.0.0.1 #指定ip
info:
app.name: atguigu-microservicecloud
company.name: www.atguigu.com
build.artifactId: $project.artifactId$
build.version: $project.version$
---
server:
port: 9005
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml
type-aliases-package: com.atguigu.springcloud.entities
mapper-locations:
- classpath:mybatis/mapper/**/*.xml
spring:
profiles: test
application:
name: microservicecloud-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/cloudDB02?useSSL=false&serverTimezone=GMT%2B8
username: root
password: 1a2s3d4f
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
eureka:
client:
service-url:
defaultZone: http://eurekaserver7004:7004/eureka
instance:
#appname: deptservice #指定微服务实例名称,可以覆盖spring.application.name
instance-id: microservicecloud-dept9005 #实例ID
prefer-ip-address: true #优先使用ip地址访问服务,否则优先hostname
hostname: localhost #指定域名
#ip-address: 127.0.0.1 #指定ip
info:
app.name: atguigu-microservicecloud
company.name: www.atguigu.com
build.artifactId: $project.artifactId$
build.version: $project.version$