-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser-dev.yml
More file actions
48 lines (45 loc) · 1.13 KB
/
Copy pathuser-dev.yml
File metadata and controls
48 lines (45 loc) · 1.13 KB
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
server:
port: 9101
spring:
application:
name: myshop-user
zipkin:
base-url: http://localhost:9042
sender:
type: web
sleuth:
sampler:
probability: 1
datasource:
url: jdbc:mysql://192.168.74.128:3307/springcloud?characterEncoding=UTF8&useSSL=false
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
show-sql: true
generate-ddl: true
database: mysql
rabbitmq:
host: 192.168.74.128
port: 5672
username: guest
password: guest
virtual-host: /
springdoc:
swagger-ui:
path: /swagger-ui.html
rabbitmq:
host: 192.168.74.128
port: 5672
username: guest
password: guest
virtual-host: /
eureka:
client:
register-with-eureka: true # 作为客户端需要注册到Eureka
fetch-registry: true # 作为客户端需要从Eureka获取注册信息
service-url: # 客户端注册地址
defaultZone: http://localhost:8888/eureka
instance:
# 优先使用该服务的IP地址注册到Eureka,在生产环境建议改为true
prefer-ip-address: true