Coder Social home page Coder Social logo

cloud-demo's Introduction

目录结构

eureka-server1

eureka注册中心1

eureka-server2

eureka注册中心2

user-service

登录注册服务

user-consume

登录注册服务调用者

搭建步骤

  1. 修改 C:\Windows\System32\drivers\etc\hosts

    添加如下内容:

    127.0.0.1 registry1

    127.0.0.1 registry2

  2. 启动 eureka-server1(7001端口) 和 eureka-server2(7002端口)

  3. 复制修改 user-service 的端口配置,分别在两个端口启动 user-service 服务

  4. 启动 user-consume 服务,访问地址如下:

    http://localhost:8080/register

    请求参数:

    {
        "username": "qaz",
        "password": "asd"
    }

    http://localhost:8080/login

    请求参数:

    {
        "username": "qaz",
        "password": "asd"
    }

其他

  1. 整合rabbitmq,user-service生产、user-consume消费

  2. 实现发送邮件功能

  3. 测试推送消息至企业微信

cloud-demo's People

Contributors

fm33333 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.