restful exception helper

A restful exception helper library

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.github.120011676
ArtifactId

ArtifactId

ladybird-spring-boot-web-helper
Last Version

Last Version

0.0.5
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 ladybird-spring-boot-web-helper

How to add to project

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

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.5
0.0.4
0.0.3
0.0.2
0.0.1