All Projects → fancyyawn → zhacker-framework

fancyyawn / zhacker-framework

Licence: other
微服务实践公共类库,基于SpringBoot2

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to zhacker-framework

e-shop
Sample Spring Cloud microservices e-shop.
Stars: ✭ 48 (+71.43%)
Mutual labels:  ddd, spring-cloud
Sample Boot Micro
Spring Cloud + Gradle Multi Project + Java8
Stars: ✭ 72 (+157.14%)
Mutual labels:  ddd, spring-cloud
microservice workshop
Microservices Architecture Workshop focuses on helping the developers / architects to understand the key Architecture paradigms with hands on section. The course helps the developers from Monolithic App mindset to a Microservices based App development. It also helps the developers with hands on development experience with key Microservices infra…
Stars: ✭ 69 (+146.43%)
Mutual labels:  ddd, spring-cloud
clean-architecture
Package for isolate your domain code from framework dependency using DDD concepts.
Stars: ✭ 93 (+232.14%)
Mutual labels:  ddd
spring-petclinic-cloud
Fork of the Spring Cloud Microservices project packaged to be deployed on several Cloud platforms: Kubernetes and Cloud Foundry
Stars: ✭ 106 (+278.57%)
Mutual labels:  spring-cloud
springCloudShop
🚀 用spring-cloud 基于tcc做的简单下单流程
Stars: ✭ 54 (+92.86%)
Mutual labels:  spring-cloud
TimeRecorder
工数管理アプリ
Stars: ✭ 51 (+82.14%)
Mutual labels:  ddd
Jonty.Blog
🎯Jonty.Blog个人博客项目,底层基于免费开源跨平台的.NET Core 3.1开发,使用 ABP vNext搭建项目框架,支持主流数据库,遵循RESTful接口规范,前端使用Blazor开发。
Stars: ✭ 42 (+50%)
Mutual labels:  ddd
easemesh
A service mesh implementation for connecting, control, and observe services in spring-cloud.
Stars: ✭ 454 (+1521.43%)
Mutual labels:  spring-cloud
ddderr
👺 Reflection-free Domain-Driven errors for Go.
Stars: ✭ 29 (+3.57%)
Mutual labels:  ddd
springboot-framework
springboot领域驱动开发
Stars: ✭ 84 (+200%)
Mutual labels:  ddd
repository
[PHP 7] Implementation and definition of a base Repository in Domain land.
Stars: ✭ 26 (-7.14%)
Mutual labels:  ddd
silex-ddd-skeleton
A simple skeleton of silex application using ddd arquitecture
Stars: ✭ 19 (-32.14%)
Mutual labels:  ddd
CleanArchitecture
Clean Architecture Solution for .NET 5
Stars: ✭ 18 (-35.71%)
Mutual labels:  ddd
wemirr-platform
最优秀、最简单、最漂亮的开源SAAS、多租户、SpringCloud、Mysql、Mybatis-Plus、Spring Cloud Alibaba 、Oauth2.0 、有BUG第一时间修复
Stars: ✭ 39 (+39.29%)
Mutual labels:  spring-cloud
java-modern-tech-practice
😎 Java™ modern tech practice sandbox ⏳
Stars: ✭ 43 (+53.57%)
Mutual labels:  spring-cloud
crossword
The game is implemented as an example of scalable and high load architecture combined with modern software development practices
Stars: ✭ 56 (+100%)
Mutual labels:  ddd
clean architecture typescript example
This repository provides an implementation (or at least an attempt) of Uncle Bob's Clean Architecture with Typescript.
Stars: ✭ 78 (+178.57%)
Mutual labels:  ddd
Vogen
A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
Stars: ✭ 240 (+757.14%)
Mutual labels:  ddd
spring-cloud-static
Static resources for the Spring Cloud website
Stars: ✭ 26 (-7.14%)
Mutual labels:  spring-cloud

zhacker-framework

个人微服务实践公共类库,参照spring-boot管理所有的maven依赖,提供了常用的starter。 具体子项目功能如下:

子项目简介

zhacker-core

包含各核心基类,如实体基类、事件基类、校验基类、通用业务异常、应用层公共请求基类和响应类等。

zhacker-boot

各通用功能的实现

  • aop: 异常兜底、日志等切面
  • event: 领域事件发布、存储、转发、通知、事件流等
  • mybatis:常用TypeHandler等,如json存储等
  • validate: 封装常用ConstraintValidator,如列表元素不重复(@ListDistinct)等校验。
  • ribbon: 权重和标签路由策略实现
  • cache: 多级缓存封装(redis+caffeine)

zhacker-boot-dependencies

参照spring-boot的maven依赖管理

zhacker-boot-parent

各项目依赖的parent,取代spring-boot-parent。

zhacker-boot-starters

包装zhacker-boot中通用功能的starter,以下只罗列了部分

  • zhacker-boot-starter: starter的公共依赖
  • zhacker-boot-starter-event-mybatis: DDD中事件相关基础设施
  • zhacker-boot-starter-ribbon: 封装了权重和标签路由策略,使应用服务能支持按权重路由,按标签路由,从而可以进一步实现实例级别的限流、降级、灰度等需求。
  • zhacker-boot-starter-aop: 一些日志打印、异常处理等通用切面
  • zhacker-boot-starter-cache: 一个简单的缓存starter
  • zhacker-boot-starter-swagger: 快速配置swagger
  • zhacker-boot-starter-job: 快速引入elastic-job-lite

如何使用

  1. 下载源码
git clone https://github.com/fancyyawn/zhacker-framework.git
  1. maven编译
mvn clean install -Dmaven.test.skip
  1. 在maven项目中引用parent和starter
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <parent>
        <artifactId>zhacker-boot-parent</artifactId>
        <groupId>top.zhacker</groupId>
        <version>2.0-SNAPSHOT</version>
    </parent>

    <artifactId>zhacker-sample-spu</artifactId>
    <modelVersion>4.0.0</modelVersion>

    <dependencies>

        <dependency>
            <groupId>top.zhacker</groupId>
            <artifactId>zhacker-boot-starter-event-mybatis</artifactId>
        </dependency>
        <dependency>
            <groupId>top.zhacker</groupId>
            <artifactId>zhacker-boot-starter-aop</artifactId>
        </dependency>
        <dependency>
            <groupId>top.zhacker</groupId>
            <artifactId>zhacker-boot-starter-swagger</artifactId>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].