Giter VIP home page Giter VIP logo

seckill_dubbo's Introduction

整体介绍

使用springboot+dubbo+mybatis+redis搭建项目

api - 公共类库,被所有模块依赖
seckill - 秒杀服务
redis - Redis封装的单独服务
controller - 控制层

启动项目

  1. 启动redis服务器,监听6379端口;
  2. 启动zookeeper集群,监听2181端口;
  3. 启动tomcat服务器,内置dubbo-admin管理控制台;
  4. 分别启动RedisApplication、SeckillApplication和ControllerApplication服务。

配置dubbo

springboot配置dubbo,参考github地址

<dependency>
    <groupId>com.alibaba.boot</groupId>
    <artifactId>dubbo-spring-boot-project</artifactId>
    <version>0.1.0</version>
</dependency>

分布式锁

基于Redis实现的分布式锁 - RedisDistributedLock.java

多环境配置文件切换

springboot使用maven的profiles实现多环境配置文件切换

参考项目

SpringBoot-Dubbo-Docker-Jenkins

seckill_dubbo's People

Contributors

kuku940 avatar

Watchers

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