# butterfly-parent **Repository Path**: depsea/butterfly-parent ## Basic Information - **Project Name**: butterfly-parent - **Description**: 通用异常及应答等 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-04-18 - **Last Updated**: 2022-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 这是一个什么样的项目? [![Apache License 2.0](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0) [![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) [![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.depsea/butterfly-parent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.depsea/butterfly-parent/) 此项目主要是为了对项目开发进行规范,提供统一异常处理及应答数据,并提供部分工具类。 # 如何使用 ## Maven ```xml org.depsea butterfly-common 1.0.0 org.depsea butterfly-web 1.0.0 ``` ## Gradle ```groovy implementation group: 'org.depsea', name: 'butterfly-common', version: '1.0.0' implementation group: 'org.depsea', name: 'butterfly-web', version: '1.0.0' ``` 或使用下面的方式 ```groovy implementation 'org.depsea:butterfly-common:1.0.0' implementation 'org.depsea:butterfly-web:1.0.0' ``` ## butterfly-common - 提供统一异常类 `org.depsea.butterfly.common.exception`、`org.depsea.butterfly.common.error` - 数据库处理 `org.depsea.butterfly.common.db` - 业务断言 `org.depsea.butterfly.common.assertion.ServiceAssert` - 其他工具类等 [文档](./butterfly-common/README.ADOC) ## butterfly-web 此项目用于规范Http请求的应答数据,并提供对springMVC数据转换的一些工具类