Code Monkey home page Code Monkey logo

common's Introduction

项目简介

  • 该项目为Ecommerce系统所有子系统共享的java包,包含:
功能 所在目录
Spring Boot项目基础配置 configuration
通用异常处理 exception
通用日志处理 logging
分布式锁 distributedlock
RabbitMQ基础配置 event
所有子系统的领域事件 event
常用工具类 utils

Ecommerce项目包括:

代码库 用途 地址
order-backend Order服务 https://github.com/e-commerce-sample/order-backend
product-backend Product服务 https://github.com/e-commerce-sample/product-backend
inventory-backend Inventory服务 https://github.com/e-commerce-sample/inventory-backend
common 共享依赖包 https://github.com/e-commerce-sample/common
devops 基础设施 https://github.com/e-commerce-sample/devops

技术选型

Spring Boot、Gradle、MySQL、Junit 5、Rest Assured、Docker、RabbitMQ

命令行用法:

命令 用途
./idea.sh 生成IntelliJ工程文件
./local-build.sh 本地构建
./publish.sh 发布到mymavenrepo.com仓库,发布新版本时需要修改build.gradle文件中的theVersion变量

注意事项

  • 添加新类型的event类时必须在DomainEvent基类中注册@JsonSubTypes,比如OrderPaidEvent:
//...
@JsonSubTypes({
//...
        @Type(value = OrderPaidEvent.class, name = "ORDER_PAID"),
//...
})
public abstract class DomainEvent {
    
}
//...

common's People

Contributors

davenkin 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.