Giter Site home page Giter Site logo

dubbo-nacos-demo's Introduction

dubbo-nacos-demo

Introduction

  • dubbo-nacos-demo
    • dubbo-nacos-api (API,Model 定义)
    • dubbo-nacos-provider (API实现)
    • dubbo-nacos-consumer (API调用)
    • dubbo-nacos-dependencies (依赖管理)

服务启动

本项目编译依赖 maven , 运行依赖 jre

dubbo-nacos-api

无需启动, 只提供依赖定义

dubbo-nacos-provider

进入 dubbo-nacos-provider 项目根目录, 编译

mvn clean install

启动服务

java -jar target/dubbo-nacos-provider-0.0.1-SNAPSHOT.jar

docker images 编译 并运行

mvn dockerfile:build
docker run -t -p 12345:12345 sky/dubbo-nacos-provider

服务可以启动多个, 端口会自动分配

dubbo-nacos-consumer

进入 dubbo-nacos-consumer 项目根目录, 编译

mvn clean install
java -jar target/dubbo-nacos-consumer-0.0.1-SNAPSHOT.jar

docker images 编译 并运行

mvn dockerfile:build
docker run sky/dubbo-nacos-consumer

原型例子可参考 dubbo-registry-nacos

dubbo-nacos-demo's People

Contributors

skyhuangjing avatar

Watchers

James Cloos avatar  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.