server: port: 8000 spring: application: name: provider-user # 项目名称尽量用小写 jpa: generate-ddl: false show-sql: true hibernate: ddl-auto: none datasource: # 指定数据源 platform: h2 # 指定数据源类型 schema: classpath:schema.sql # 指定h2数据库的建表脚本 data: classpath:data.sql # 指定h2数据库的insert脚本 logging: level: root: INFO org.hibernate: INFO org.hibernate.type.descriptor.sql.BasicBinder: TRACE org.hibernate.type.descriptor.sql.BasicExtractor: TRACE com.itmuch.youran.persistence: ERROR eureka: client: serviceUrl: defaultZone: http://120.55.167.171:8761/eureka/ # 指定注册中心的地址 instance: preferIpAddress: true ip-address: 120.55.167.171
server: port: 8020 spring: application: name: consumer-feign eureka: client: serviceUrl: defaultZone: http://120.55.167.171:8761/eureka/ instance: preferIpAddress: true ip-address: 120.55.167.171 ribbon: eureka: enabled: true
server: port: 8761 # 指定该Eureka实例的端口 eureka: instance: hostname: discovery ip-address: 120.55.167.171 # 指定该Eureka实例的主机名 client: registerWithEureka: false fetchRegistry: false serviceUrl: defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/