global-result-handler | 极致优雅!零侵入的全局异常处理、接口参数校验、错误码、统一响应格式解决方案
kandi X-RAY | global-result-handler Summary
kandi X-RAY | global-result-handler Summary
global-result-handler is a Java library. global-result-handler has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub, Maven.
极致优雅!零侵入的全局异常处理、接口参数校验、错误码、统一响应格式解决方案
极致优雅!零侵入的全局异常处理、接口参数校验、错误码、统一响应格式解决方案
Support
Quality
Security
License
Reuse
Support
global-result-handler has a low active ecosystem.
It has 9 star(s) with 0 fork(s). There are 2 watchers for this library.
It had no major release in the last 12 months.
global-result-handler has no issues reported. There are 3 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of global-result-handler is 1.0
Quality
global-result-handler has no bugs reported.
Security
global-result-handler has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
global-result-handler is licensed under the Apache-2.0 License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
global-result-handler releases are available to install and integrate.
Deployable package is available in Maven.
Build file is available. You can build the component from source.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi has reviewed global-result-handler and discovered the below as its top functions. This is intended to give you an instant insight into global-result-handler implemented functionality, and help decide if they suit your requirements.
- Generate validation response .
- Before body write .
- The validator bean .
- Initialize default exceptions .
- Returns a responseDto by id
- Creates a new response instance .
- Throw exception
- The global exceptionAdvice bean .
- Sets the code .
- Default success response meta
Get all kandi verified functions for this library.
global-result-handler Key Features
No Key Features are available at this moment for global-result-handler.
global-result-handler Examples and Code Snippets
/**
* class {@code ExampleController} 使用案例的Controller.
*
* @author feiniaojin
*/
@Controller
@RequestMapping("/example")
@Slf4j
@Validated
@Api("ExampleController")
public class ExampleController {
@Resource
private ExampleService exampleSer
@GetMapping
@ResponseBody
public Result GeneralPageQuery(Parameter params) {
Result result = new Result();
//TODO 1.校验params参数,非空校验、长度校验
try{
//TODO 2.调用Service的一系列操作
//TODO 3.将操作结果设置到result对象中
}catch(Exception e)
@Data
public class RequestDTO {
@NotNull(message = "userId is null ")
private Long userId;
@NotNull(message = "userName is null ")
@Length(min = 6, max = 12)
private String userName;
@NotNull(message = "age is null ")
@
Community Discussions
No Community Discussions are available at this moment for global-result-handler.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install global-result-handler
You can download it from GitHub, Maven.
You can use global-result-handler like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the global-result-handler component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
You can use global-result-handler like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the global-result-handler component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page