happy-code-samples

happy组件使用示例

License

License

GroupId

GroupId

cool.happycoding
ArtifactId

ArtifactId

happy-code-samples
Last Version

Last Version

1.0.0.RELEASE
Release Date

Release Date

Type

Type

pom
Description

Description

happy-code-samples
happy组件使用示例
Project Organization

Project Organization

HappyCoding

Download happy-code-samples

How to add to project

<!-- https://jarcasting.com/artifacts/cool.happycoding/happy-code-samples/ -->
<dependency>
    <groupId>cool.happycoding</groupId>
    <artifactId>happy-code-samples</artifactId>
    <version>1.0.0.RELEASE</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/cool.happycoding/happy-code-samples/
implementation 'cool.happycoding:happy-code-samples:1.0.0.RELEASE'
// https://jarcasting.com/artifacts/cool.happycoding/happy-code-samples/
implementation ("cool.happycoding:happy-code-samples:1.0.0.RELEASE")
'cool.happycoding:happy-code-samples:pom:1.0.0.RELEASE'
<dependency org="cool.happycoding" name="happy-code-samples" rev="1.0.0.RELEASE">
  <artifact name="happy-code-samples" type="pom" />
</dependency>
@Grapes(
@Grab(group='cool.happycoding', module='happy-code-samples', version='1.0.0.RELEASE')
)
libraryDependencies += "cool.happycoding" % "happy-code-samples" % "1.0.0.RELEASE"
[cool.happycoding/happy-code-samples "1.0.0.RELEASE"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • happy-code-starter-web-sample
  • happy-code-starter-user-sample
  • happy-code-starter-validator-sample
  • happy-code-starter-mybatis-sample
  • happy-code-starter-mq-sample
  • happy-code-starter-stream-mq-sample

happy-code

License

本项目将日常开发中一些优秀实践封装起来,以微服务技术组件的形式赋能开发,致力于让代码变得简洁优雅,让开发变得简单高效,实现按时下班,回家吃饭的小目标!

如何使用

如何引入依赖

如果需要使用已发布的版本,在 dependencyManagement 中添加如下配置。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>cool.happycoding</groupId>
            <artifactId>happy-code-dependencies</artifactId>
            <version>1.0.1-SNAPSHOT</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

然后在 dependencies 中添加自己所需使用的依赖即可使用。

模块介绍

版本更新记录

1.0.1-SNAPSHOT[current]

1.0.0

  • feat: 初始版本
  • feat: 规范依赖体系和版本
  • feat: 封装web组件规定序列化/反序列化方式,封装前后端交互规范、全局异常处理规范
  • feat: 封装validator组件,用于请求的入参校验
  • feat: 封装swagger组件,用于接口文档的管理
  • feat: 封装user组件,提供一个用于封装用户信息的UserContext
  • feat: 封装mybatis组件,引入mybatis-plus,实现Entity对象规范定义
  • feat: 封装log组件,规范log配置

框架选型

  • spring Cloud Hoxton.SR8
  • spring Cloud Alibaba 2.2.3.RELEASE

主要依赖

  • lombok 1.18.12
  • hutool 5.3.9
  • fastjson 1.2.73
  • guava 28.0-jre
  • knife4j 3.0.2

参考

cool.happycoding

happy-coding

按时下班,回家吃饭

Versions

Version
1.0.0.RELEASE