瀏覽代碼

工程首次提交

chenweida 8 年之前
父節點
當前提交
7a81173be3
共有 2 個文件被更改,包括 96 次插入0 次删除
  1. 48 0
      application.yml
  2. 48 0
      svr-configurations.yml

+ 48 - 0
application.yml

@ -0,0 +1,48 @@
server:
  port: 1221
eureka:
  client:
    healthcheck:
      enabled: true #启动监控检查
  instance:
    #eurika使用IP不使用host
    prefer-ip-address: true
    #定制化在eurika中显示的名称
    instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
#security:
#  user:
#    name: jw
#    password:  jkzl
---
spring:
  profiles: dev
eureka:
  client:
    serviceUrl:
      defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka
---
spring:
  profiles: test
eureka:
  client:
    serviceUrl:
      defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka
---
spring:
  profiles: prod
eureka:
  client:
    serviceUrl:
      defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka

+ 48 - 0
svr-configurations.yml

@ -0,0 +1,48 @@
server:
  port: 1221
eureka:
  client:
    healthcheck:
      enabled: true #启动监控检查
  instance:
    #eurika使用IP不使用host
    prefer-ip-address: true
    #定制化在eurika中显示的名称
    instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
#security:
#  user:
#    name: jw
#    password:  jkzl
---
spring:
  profiles: dev
eureka:
  client:
    serviceUrl:
      defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka
---
spring:
  profiles: test
eureka:
  client:
    serviceUrl:
      defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka
---
spring:
  profiles: prod
eureka:
  client:
    serviceUrl:
      defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka