You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
705 B
27 lines
705 B
spring:
|
|
cloud:
|
|
# consul 相关配置
|
|
consul:
|
|
# 配置consul所在的服务器IP
|
|
host: localhost
|
|
port: 8500
|
|
discovery:
|
|
# 配置本微服务的,微服务名称, 网关中需要配置与此一致
|
|
service-name: ${spring.application.name}-server
|
|
prefer-ip-address: true
|
|
# 配置本微服务节点使用的IP地址
|
|
ip-address: 127.0.0.1
|
|
application:
|
|
# 配置本微服务的应用名 **
|
|
name: entry-log
|
|
# elasticsearch 配置
|
|
elasticsearch:
|
|
rest:
|
|
uris: localhost:9200
|
|
jove:
|
|
session:
|
|
strategy: TOKEN_STRATEGY
|
|
timeout: 43200
|
|
#配置本微服务端口 **
|
|
server:
|
|
port: 9090
|
|
|