|
|
@@ -4,55 +4,20 @@ server:
|
|
4
|
4
|
|
|
5
|
5
|
eureka:
|
|
6
|
6
|
instance:
|
|
7
|
|
- hostname: localhost #地址 172.16.0.46
|
|
|
7
|
+ hostname: 172.16.0.2 #地址 172.16.0.46
|
|
8
|
8
|
prefer-ip-address: true
|
|
9
|
9
|
client:
|
|
10
|
10
|
service-url:
|
|
11
|
11
|
# 向注册中心注册服务
|
|
12
|
12
|
defaultZone: http://${eureka.instance.hostname}:9600/eureka
|
|
13
|
13
|
|
|
14
|
|
-#spring:
|
|
15
|
|
-# application:
|
|
16
|
|
-# name: csc-szls-oauth #服务名
|
|
17
|
|
-# cloud:
|
|
18
|
|
-# config:
|
|
19
|
|
-# discovery:
|
|
20
|
|
-# enabled: true
|
|
21
|
|
-# service-id: CSC-SZLS-CONFIG # 注册中心的服务名
|
|
22
|
|
-# profile: dev # 指定配置文件的环境
|
|
23
|
|
-# label: master
|
|
24
|
|
-
|
|
25
|
14
|
spring:
|
|
26
|
15
|
application:
|
|
27
|
16
|
name: csc-szls-oauth #服务名
|
|
28
|
|
- datasource:
|
|
29
|
|
- driver-class-name: com.mysql.jdbc.Driver
|
|
30
|
|
- username: root
|
|
31
|
|
- password: 123456
|
|
32
|
|
- url: jdbc:mysql://localhost:3306/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
33
|
|
-# url: jdbc:mysql://172.16.0.46:3306/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
34
|
|
-
|
|
35
|
|
-redis:
|
|
36
|
|
- database: 0 #Redis数据库索引(默认为0)
|
|
37
|
|
- timeout: 5000ms # 连接超时时间(毫秒)
|
|
38
|
|
- host: localhost
|
|
39
|
|
- port: 6379
|
|
40
|
|
- password: # Redis服务器连接密码(默认为空)
|
|
41
|
|
-# host: 172.16.0.46
|
|
42
|
|
-# port: 6679
|
|
43
|
|
-# password: 123456 # Redis服务器连接密码(默认为空)
|
|
44
|
|
- jedis:
|
|
45
|
|
- pool:
|
|
46
|
|
- max-active: 8 # 连接池中的最大连接
|
|
47
|
|
- max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
48
|
|
- max-idle: 8 # 连接池中的最大空闲连接
|
|
49
|
|
- min-idle: 0 # 连接池中的最小空闲连接
|
|
50
|
|
-
|
|
51
|
|
-mybatis:
|
|
52
|
|
- mapper-locations: classpath:/mapper/*Mapper.xml
|
|
53
|
|
-
|
|
54
|
|
-my-config:
|
|
55
|
|
- clientId: client_oauth
|
|
56
|
|
-logging:
|
|
57
|
|
- level:
|
|
58
|
|
- com.unissoft.mapper: DEBUG #包路径为mapper文件包路径
|
|
|
17
|
+ cloud:
|
|
|
18
|
+ config:
|
|
|
19
|
+ discovery:
|
|
|
20
|
+ enabled: true
|
|
|
21
|
+ service-id: CSC-SZLS-CONFIG # 注册中心的服务名
|
|
|
22
|
+ profile: dev # 指定配置文件的环境
|
|
|
23
|
+ label: master
|