添加一个测试的配置文件
Signed-off-by: spring-cloud <spring-cloud@qq.com>
This commit is contained in:
parent
2a33fcc145
commit
4f889e7f61
25
application.yml
Normal file
25
application.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
server:
|
||||||
|
# 服务端口
|
||||||
|
port: 9000
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: user-service-consumer
|
||||||
|
main:
|
||||||
|
allow-bean-definition-overriding: true
|
||||||
|
eureka:
|
||||||
|
instance:
|
||||||
|
hostname: localhost #实例主机名称
|
||||||
|
client:
|
||||||
|
service-url:
|
||||||
|
defaultZone: http://localhost:7000/eureka/ # // 注册中心地址
|
||||||
|
fetch-registry: true # 消费者需要注册中心的注册信息
|
||||||
|
register-with-eureka: true
|
||||||
|
|
||||||
|
feign:
|
||||||
|
client:
|
||||||
|
config:
|
||||||
|
default:
|
||||||
|
logger-level: full
|
||||||
|
# 整合feign和sentinel的配置
|
||||||
|
sentinel:
|
||||||
|
enabled: true
|
Loading…
x
Reference in New Issue
Block a user