美文网首页
SpringCloud 创建服务提供者和消费者

SpringCloud 创建服务提供者和消费者

作者: 白色普通程序员 | 来源:发表于2019-04-24 11:30 被阅读0次
创建子模块 创建普通模块 添加注解

配置文件:

spring:

    application:

        name: serviecOder

server:

    port: 8082

eureka:

    instance:

        prefer-ip-address: true

        hostname: localhost

    client:

        register-with-eureka: true

        fetch-registry: true

        serviceUrl:

            defaultZone: http://localhost:8761/eureka/

启动成功

相关文章

网友评论

      本文标题:SpringCloud 创建服务提供者和消费者

      本文链接:https://www.haomeiwen.com/subject/wciwgqtx.html