-
Notifications
You must be signed in to change notification settings - Fork 0
/
microservicecloud-config-dept-client.yml
92 lines (80 loc) · 3.07 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
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: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/cloudDB01?characterEncoding=utf8&useSSL=true&rewriteBatchedStatements=true #mysql驱动包
# 数据库名称
username: root
password: deak1991
dbcp2:
min-idle: 5 # 数据库连接池的最小维持连接数
initial-size: 5 # 初始化连接数
max-total: 5 # 最大连接数
max-wait-millis: 200
#mybatis整合
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径
type-aliases-package: com.xsquare.springcloud.entities # 所有Entity别名类所在包
mapper-locations:
- classpath:mybatis/mappers/**/*.xml
eureka:
client: #客户端注册进eureka的服务列表
service-url:
# 单机版:defaultZone: http://localhost:7001/eureka #服务端提供的地址
defaultZone: http://eureka7001.com:7001/eureka/
instance:
instance-id: microservicecloud-dept8001 #修改实例id
prefer-ip-address: true #点击实例访问路径可以显示ip
info:
app.name: xsquare-microservicecloud
company.name: www.xsquare.cn
build.artifactId: "@project.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: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/cloudDB02?characterEncoding=utf8&useSSL=true&rewriteBatchedStatements=true #mysql驱动包
# 数据库名称
username: root
password: deak1991
dbcp2:
min-idle: 5 # 数据库连接池的最小维持连接数
initial-size: 5 # 初始化连接数
max-total: 5 # 最大连接数
max-wait-millis: 200
#mybatis整合
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径
type-aliases-package: com.xsquare.springcloud.entities # 所有Entity别名类所在包
mapper-locations:
- classpath:mybatis/mappers/**/*.xml
eureka:
client: #客户端注册进eureka的服务列表
service-url:
# 单机版:defaultZone: http://localhost:7001/eureka #服务端提供的地址
defaultZone: http://eureka7001.com:7001/eureka/
instance:
instance-id: microservicecloud-dept8001 #修改实例id
prefer-ip-address: true #点击实例访问路径可以显示ip
info:
app.name: xsquare-microservicecloud
company.name: www.xsquare.cn
build.artifactId: "@project.artifactId@"
build.version: "@project.version@"