restful exception helper

A restful exception helper library

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

com.github.120011676
Идентификатор

Идентификатор

ladybird-spring-boot-web-helper
Последняя версия

Последняя версия

0.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

restful exception helper
A restful exception helper library
Ссылка на сайт

Ссылка на сайт

https://github.com/120011676/restful-exception-helper
Система контроля версий

Система контроля версий

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

Скачать ladybird-spring-boot-web-helper

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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();

Версии библиотеки

Версия
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1