-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmicroservicecloud-configclient-provider.yml
80 lines (66 loc) · 2.1 KB
/
microservicecloud-configclient-provider.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
# Provider :连接Eureka,并且通过CloudConfigServer获取application.yml配置文件信息
spring:
profiles:
active: dev
---
spring:
profiles: dev
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloudtest_01?useSSL=false&characterEncoding=utf-8&serverTimezone=GMT%2B8
username: root
password: root
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
server:
port: 8085
eureka:
client:
service-url:
# defaultZone: http://eureka7001.com:7001/eureka,http://eureka7002.com:7002/eureka,http://eureka7003.com:7003/eureka
defaultZone: http://eureka7004.com:7004/eureka
# defaultZone: localhost:7004/eureka
instance:
instance-id: microservice-provider-8085-cloudconfigclient
mybatis:
# mybatis 配置文件路径
config-location: classpath:mybatis/mybatis.cfg.xml
# mybatis 别名 base-package
type-aliases-package: com.yyl.microservice.entity
# mybatis mapper映射xml文件路径
mapper-locations: classpath:mybatis/mapper/**/*.xml
---
spring:
profiles: test
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloudtest_02?useSSL=false&characterEncoding=utf-8&serverTimezone=GMT%2B8
username: root
password: root
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
server:
port: 8086
eureka:
client:
service-url:
# defaultZone: http://eureka7001.com:7001,http://eureka7002.com:7002,http://eureka7003.com:7003
defaultZone: http://eureka7004.com:7004/eureka
# defaultZone: localhost:7004/eureka
instance:
instance-id: microservice-provider-8086-cloudconfigclient
mybatis:
# mybatis 配置文件路径
config-location: classpath:mybatis/mybatis.cfg.xml
# mybatis 别名 base-package
type-aliases-package: com.yyl.microservice.entity
# mybatis mapper映射xml文件路径
mapper-locations: classpath:mybatis/mapper/**/*.xml