MVN

io.github.tf2jaguar.micro : micro-except

Maven & Gradle

Jun 16, 2022
1 stars

micro-except · 定义服务异常 `ServerException` ,打印error日志,返回接口错误,业务异常 `BusinessException` ,不打印error日志,只返回接口错误,参数绑定异常 `BindException` ,打印error日志,返回接口错误等。同时捕获全局异常返回通用结构体

<dependency>
    <groupId>io.github.tf2jaguar.micro</groupId>
    <artifactId>micro-except</artifactId>
    <version>1.1.3.RELEASE</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of io.github.tf2jaguar.micro : micro-except to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.1.3.RELEASE

All Versions

Choose a version of io.github.tf2jaguar.micro : micro-except to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.1.x
micro-except-1.1.3.RELEASE
micro-except-1.1.2.RELEASE
micro-except-1.1.1.RELEASE
micro-except-1.1.0.RELEASE

How to add a dependency to Maven

Add the following io.github.tf2jaguar.micro : micro-except maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>io.github.tf2jaguar.micro</groupId>
    <artifactId>micro-except</artifactId>
    <version>1.1.3.RELEASE</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following io.github.tf2jaguar.micro : micro-except gradle dependency to your build.gradle file:

implementation 'io.github.tf2jaguar.micro:micro-except:1.1.3.RELEASE'

Gradle Kotlin DSL: Add the following io.github.tf2jaguar.micro : micro-except gradle kotlin dependency to your build.gradle.kts file:

implementation("io.github.tf2jaguar.micro:micro-except:1.1.3.RELEASE")

How to add a dependency to SBT Scala

SBT Scala: Add the following io.github.tf2jaguar.micro : micro-except sbt scala dependency to your build.sbt file:

libraryDependencies += "io.github.tf2jaguar.micro" % "micro-except" % "1.1.3.RELEASE"