-
Notifications
You must be signed in to change notification settings - Fork 0
/
microservicecloud-config-dept-client.yml
81 lines (74 loc) · 2.38 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
spring:
profiles:
active:
- dev
---
server:
port: 8001
spring:
profiles: dev
application:
name: microservicecloud-config-dept-client # 对外暴露的服务名
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: org.gjt.mm.mysql.Driver
url: jdbc:mysql://localhost:3306/clouddb01
username: root
password: 1234
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
mybatis:
config-location: classpath:mybatis/mybatis-cfg.xml # mybatis配置所在
type-aliases-package: com.springcloud.entity # 所有entity类所在
mapper-locations:
- classpath:mybatis/mapper/**/*.xml # mapper映射文件
eureka: # 客户端注册进eureka服务列表内,所需内容
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/
instance:
instance-id: dept-8001.com # 设置在微服务注册页面显示的页面
prefer-ip-address: true # 访问路径显示IP地址
info:
app.name: hb-microservicecloud-springcloudconfig01
company.name: www.hbbbbbb.com
build.artifactId: $projec.artifactId$
build.version: $project.version$
---
server:
port: 8001
spring:
profiles: test
application:
name: microservicecloud-config-dept-client # 对外暴露的服务名
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: org.gjt.mm.mysql.Driver
url: jdbc:mysql://localhost:3306/clouddb02
username: root
password: 1234
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
mybatis:
config-location: classpath:mybatis/mybatis-cfg.xml # mybatis配置所在
type-aliases-package: com.springcloud.entity # 所有entity类所在
mapper-locations:
- classpath:mybatis/mapper/**/*.xml # mapper映射文件
eureka: # 客户端注册进eureka服务列表内,所需内容
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/
instance:
instance-id: dept-8001.com # 设置在微服务注册页面显示的页面
prefer-ip-address: true # 访问路径显示IP地址
info:
app.name: hb-microservicecloud-springcloudconfig02
company.name: www.hbbbbbb.com
build.artifactId: $projec.artifactId$
build.version: $project.version$