Skip to content

[!Depreciated]基于Springboot自定义starter, 旨在提供完善的Web开发基础组件,对业务方屏蔽各种依赖、配置、库、日志、异常处理、权限、API文档等问题,使业务方专注于应用逻辑。已经放弃在Springboot基础上开发,转向直接使用SpringCloud,请参考:https://github.com/junneyang/xxproject

junneyang/common-web-starter

Repository files navigation

common-web-starter

基于Springboot自定义starter, 旨在提供完善的Web开发基础组件,对业务方屏蔽各种依赖、配置、库、日志、异常处理、权限、API文档等问题,使业务方专注于应用逻辑。项目持续开发。放弃在Springboot基础上开发,转向直接使用SpringCloud,请参考:SpringCloud 微服务综合实例

1.Usage:    

  • Clone This Repository
git clone https://github.com/junneyang/common-web-starter.git
  • New Maven Module
You Can Refer The `xproject-common-web-starter-test` Module
  • Add Dependency
	<dependencies>
		<dependency>
			<groupId>com.xcompany.xproject</groupId>
			<artifactId>xproject-common-web-starter</artifactId>
		</dependency>
	</dependencies>
  • Start To Enjoy Your First App !

2.Features:

目前提供的以及计划支持的特性如下:

2.1.Common

  • 日志Filter。
  • 消息头、日志自动注入X-RequestId。
  • 异常处理、异常基础类。
  • Context自动注入、引用。
  • Swagger、apiDoc文档支持。
  • 国际化支持。
  • 日志、配置文件依赖/覆盖。
  • 模块化架构开发。

2.2.Controller

  • String与TimeStamp自动转换。
  • HTTP请求、响应、状态码基础库。

2.3.Domain

  • BaseEntity支持(is_deleted、时间)。
  • Domain模型最佳实践, 不引入外键约束。
  • Hibernate SessionFactory As Supplement Of JPA EntityManager。
  • Spring Data JPA/Hibernate支持最佳实践示例,连表、分页、查询完善实例。

2.4.Sericalizer

  • 序列化、反序列化最佳实践示例。

2.5.Other

  • OAuth2权限管理。
  • 二级缓存、分布式缓存(spring boot 1.5.2 默认支持 hazelcast-3.7.5)。
  • 任务队列。
  • 定时任务。
  • 分布式事务。
  • 通知中心。
  • 分布式追踪。
  • 横向扩展、高可用。
  • RPC(Thrift/gRPC)。
  • 同步、异步。
  • 进程管理、Docker、K8S集成。
  • CQRS、Axon框架。
  • 失败重试。
  • 日志收集等。

[//]: # ## 3.Release Notes: [//]: # ### 1.0.0-RELEASE [//]: # - 2.1 [//]: # - 2.2 [//]: # - 2.3 [//]: # - 2.4

About

[!Depreciated]基于Springboot自定义starter, 旨在提供完善的Web开发基础组件,对业务方屏蔽各种依赖、配置、库、日志、异常处理、权限、API文档等问题,使业务方专注于应用逻辑。已经放弃在Springboot基础上开发,转向直接使用SpringCloud,请参考:https://github.com/junneyang/xxproject

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published