common-base

a tool lib that supplies exception structure and utils

License

License

GroupId

GroupId

io.github.shenbinglife
ArtifactId

ArtifactId

common-base
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

common-base
a tool lib that supplies exception structure and utils
Project URL

Project URL

https://github.com/shenbinglife/common-base
Source Code Management

Source Code Management

https://github.com/shenbinglife/common-base

Download common-base

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.5
commons-io : commons-io jar 2.5
org.slf4j : slf4j-api jar 1.7.21
org.mybatis : mybatis Optional jar 3.4.6

provided (9)

Group / Artifact Type Version
commons-codec : commons-codec jar 1.10
commons-collections : commons-collections jar 3.2.2
commons-beanutils : commons-beanutils jar 1.9.3
org.apache.httpcomponents : httpclient jar 4.5.2
com.google.code.gson : gson jar 2.6.2
com.google.guava : guava jar 18.0
javax.servlet : javax.servlet-api jar 3.0.1
com.fasterxml.jackson.core : jackson-databind jar 2.3.4
org.springframework : spring-context jar 4.0.0.RELEASE

Project Modules

There are no modules declared in this project.

common-base

最基本的通用工具包,提供基本的异常结构,通用注解,工具类等

Maven地址

<dependency>
    <groupId>io.github.shenbinglife</groupId>
    <artifactId>common-base</artifactId>
    <version>1.0.0</version>
</dependency>

自定义异常

QQ截图20180718105106.png

自定义注解

@Log

自定义工具类

  • AssertUtil
  • JsonUtil
  • HttpClientUtil
  • MD5Util
  • RequestUtil
  • ResponseUtil
  • UrlConnectionUtil
  • VerifyCodeUtil
    ...

自定义Domain

  • BaseEntity
  • BaseService
  • BaseDAO
  • Message
  • PageList
  • Sorter

Mybatis插件

  • MapTypeHandler
  • MybatisUpdateInterceptor

Versions

Version
1.0.0