bp-common

The common libraries.

License

License

GroupId

GroupId

com.bpfaas
ArtifactId

ArtifactId

bp-common
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

bp-common
The common libraries.
Project URL

Project URL

https://github.com/bpfaas/java-bp-common.git
Source Code Management

Source Code Management

https://github.com/bpfaas/java-bp-common.git

Download bp-common

How to add to project

<!-- https://jarcasting.com/artifacts/com.bpfaas/bp-common/ -->
<dependency>
    <groupId>com.bpfaas</groupId>
    <artifactId>bp-common</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.bpfaas/bp-common/
implementation 'com.bpfaas:bp-common:0.0.3'
// https://jarcasting.com/artifacts/com.bpfaas/bp-common/
implementation ("com.bpfaas:bp-common:0.0.3")
'com.bpfaas:bp-common:jar:0.0.3'
<dependency org="com.bpfaas" name="bp-common" rev="0.0.3">
  <artifact name="bp-common" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.bpfaas', module='bp-common', version='0.0.3')
)
libraryDependencies += "com.bpfaas" % "bp-common" % "0.0.3"
[com.bpfaas/bp-common "0.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.11.2
org.springframework.boot : spring-boot-starter-validation jar 2.2.7.RELEASE

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.12

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
com.github.stefanbirkner : system-rules jar 1.16.0

Project Modules

There are no modules declared in this project.

Maven Central License

<dependency>
    <groupId>com.bpfaas</groupId>
    <artifactId>bp-common</artifactId>
    <version>0.0.3</version>
</dependency>

包含如下内容:

  • 约定返回对象格式
  • 常用异常
    • BpErrSubcodeException 可使用此异常来传递一个业务相关的err_subCode; 在外层统一处理;
    • BpRawMsgException 可在controller处理中抛出此异常, 错误处理时将会自动返回包含指定httpStatusCode等信息 http的raw形式.
  • 常用工具
    • JsonUtils json序列化反序列化工具.
    • CommandUtils 命令执行工具
    • CryptUtils 加密算法等工具
  • 注解
    • @ValidatorId 验证请求参数id的合法性.

Versions

Version
0.0.3
0.0.2
0.0.1