restful exception helper

A restful exception helper library

License

License

GroupId

GroupId

com.github.120011676
ArtifactId

ArtifactId

restful-exception
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

restful exception helper
A restful exception helper library
Project URL

Project URL

https://github.com/120011676/restful-exception-helper
Source Code Management

Source Code Management

https://github.com/120011676/restful-exception-helper

Download restful-exception

How to add to project

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

Dependencies

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

Project Modules

There are no modules declared in this project.

exception-helper

##使用方式

1.gradle配置

    implementation 'com.github.120011676:ladybird-spring-boot-web-helper:latest.release'

2.java启动文件配置

@SpringBootApplication(scanBasePackages = {"com.github.qq120011676.ladybird"}, scanBasePackageClasses = Application.class)
public class Application {

3.application.yml配置

ladybird:
  restful-exception:
    code-name: errCode
    message-name: errMsg
    messages:
      no_login:
        httpStatus: 401
        message: 未登录
      no_authority:
        httpStatus: 403
        message: 无权限

###代码使用

ControllerHelper.getHttpServletRequest();

Versions

Version
0.0.1