123456789101112131415161718192021222324252627282930313233343536 |
- server:
- port: 18001
- # 指定当前服务的名称,这个名称会注册到注册中心
- spring:
- application:
- name: @artifactId@
- cloud:
- config:
- server:
- git: #配置存储配置信息的Git仓库
- uri: http://git.caimei365.com/caimei_code/caimei365-cloud-config-files
- username: caimei_code
- password: caimei_code
- clone-on-start: true #开启启动时直接从git获取配置
- search-paths: /** # 指定搜索根路径下的所有目录,若有多个路径使用逗号隔开
- # native:
- # search-locations: D:/_CAIMEI_WORKSPACE/caimei365-cloud-config-files-local # 本地配置文件路径
- # profiles:
- # active: native
- # 指定服务注册中心的地址
- eureka:
- instance:
- prefer-ip-address: true # 是否使用 ip 地址注册
- instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
- client:
- service-url: # 设置服务注册中心地址
- defaultZone: http://localhost:18000/eureka/
- #日志配置
- logging:
- file:
- path: /mnt/newdatadrive/data/runtime/cloud-instance/cloud-config/logs
- level:
- root: info
|