global-result-handler | 极致优雅!零侵入的全局异常处理、接口参数校验、错误码、统一响应格式解决方案

 by   feiniaojin Java Version: 1.0 License: Apache-2.0

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

            kandi-support 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.
              OutlinedDot
              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

            kandi-Quality Quality

              global-result-handler has no bugs reported.

            kandi-Security Security

              global-result-handler has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License 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.

            kandi-Reuse 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

            3. 案例代码
            Javadot img1Lines of Code : 140dot img1License : Permissive (Apache-2.0)
            copy iconCopy
            /**
             * class {@code ExampleController} 使用案例的Controller.
             *
             * @author feiniaojin
             */
            @Controller
            @RequestMapping("/example")
            @Slf4j
            @Validated
            @Api("ExampleController")
            public class ExampleController {
            
              @Resource
              private ExampleService exampleSer  
            1. 需求背景,1.2 统一异常处理及错误码
            Javadot img2Lines of Code : 20dot img2License : Permissive (Apache-2.0)
            copy iconCopy
            @GetMapping
            @ResponseBody
            public Result GeneralPageQuery(Parameter params) {
                
                Result result = new Result();
                //TODO 1.校验params参数,非空校验、长度校验
                try{
                    //TODO 2.调用Service的一系列操作
                    //TODO 3.将操作结果设置到result对象中
                }catch(Exception e)  
            2. quick start,2.3 请求参数校验
            Javadot img3Lines of Code : 14dot img3License : Permissive (Apache-2.0)
            copy iconCopy
            @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 .

            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:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/feiniaojin/global-result-handler.git

          • CLI

            gh repo clone feiniaojin/global-result-handler

          • sshUrl

            git@github.com:feiniaojin/global-result-handler.git

          • Download

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by feiniaojin

            graceful-response

            by feiniaojinJava

            pie

            by feiniaojinJava

            ddd-archetype

            by feiniaojinJava

            graceful-response-example

            by feiniaojinJava

            naaf-generator

            by feiniaojinJava