修改下对应的参数
spring:
# public setting
application:
name: dmr-service-po --项目名
# active setting
profiles:
active: dev --环境
main:
allow-bean-definition-overriding: true
server:
port: 17701 --端口号
servlet:
context-path: /po --访问前缀
tomcat:
uri-encoding: UTF-8 --编码
feign:
hystrix:
enabled: false
client:
config:
default:
connectTimeout: 50000
readTimeout: 50000
loggerLevel: basic
threadpool:
default:
coreSize: 500
management:
endpoints:
web:
exposure:
include: "*"
#权限系统配置
midea-auth:
appCode: xxx
#租户编码
tenantCode: xxxx
#domain:
#dev: xxxxx
#拦截器白名单,用逗号,隔开
# whitelist: /test/*
#dev
---与上面的dev对应,如果继续加,复制下面的,然后吧dev改成sit就可以
spring:
profiles: dev
cloud:
config:
label: master
profile: dev
discovery:
enabled: true
service-id:
logistics-log:
path: /apps/svr/oms/logs
zipkin:
# base-url: http://
# base-url: http://
enabled: true
sleuth:
sampler:
percentage: 1
eureka:
instance:
hostname: ${spring.cloud.client.ip-address}
prefer-ip-address: true
instanceId: ${eureka.instance.hostname}:${spring.application.name}:${server.port}
client:
serviceUrl:
defaultZone: http://
#defaultZone: http://
#defaultZone: http://
#defaultZone: