diff --git a/.editorconfig b/.editorconfig index 775be5ba..54422918 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,3 +12,6 @@ insert_final_newline = true [*.md] trim_trailing_whitespace = false + +[*.yml] +indent_size = 2 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index af87f480..028c881d 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,4 +1,4 @@ # These are supported funding model platforms -github: [binarywang] +github: [ binarywang ] custom: https://github.com/Wechat-Group/WxJava/blob/master/images/qrcodes/wepay.jpg?raw=true diff --git a/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorController.java b/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorController.java index 607ce8ae..b5517753 100644 --- a/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorController.java +++ b/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorController.java @@ -16,14 +16,14 @@ @RequestMapping("/error") public class ErrorController { - @GetMapping(value = "/404") - public String error404() { - return "error"; - } + @GetMapping(value = "/404") + public String error404() { + return "error"; + } - @GetMapping(value = "/500") - public String error500() { - return "error"; - } + @GetMapping(value = "/500") + public String error500() { + return "error"; + } } diff --git a/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorPageConfiguration.java b/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorPageConfiguration.java index 18fd1a16..21992073 100644 --- a/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorPageConfiguration.java +++ b/src/main/java/com/github/binarywang/demo/wx/mp/error/ErrorPageConfiguration.java @@ -16,12 +16,12 @@ */ @Component public class ErrorPageConfiguration implements ErrorPageRegistrar { - @Override - public void registerErrorPages(ErrorPageRegistry errorPageRegistry) { - errorPageRegistry.addErrorPages( - new ErrorPage(HttpStatus.NOT_FOUND, "/error/404"), - new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/error/500") - ); - } + @Override + public void registerErrorPages(ErrorPageRegistry errorPageRegistry) { + errorPageRegistry.addErrorPages( + new ErrorPage(HttpStatus.NOT_FOUND, "/error/404"), + new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/error/500") + ); + } } diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html index 00055b96..d99cf0f9 100644 --- a/src/main/resources/templates/error.html +++ b/src/main/resources/templates/error.html @@ -2,15 +2,15 @@