{"id":24514636,"url":"https://github.com/wangcaitao/wangcaitao-global-exception-handler","last_synced_at":"2026-05-20T09:31:16.206Z","repository":{"id":57716165,"uuid":"161902174","full_name":"wangcaitao/wangcaitao-global-exception-handler","owner":"wangcaitao","description":"spring boot 统一异常处理","archived":false,"fork":false,"pushed_at":"2020-07-09T04:51:27.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T01:13:51.135Z","etag":null,"topics":["exception-handler","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangcaitao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-15T12:19:03.000Z","updated_at":"2020-07-09T04:46:42.000Z","dependencies_parsed_at":"2022-08-25T09:20:43.838Z","dependency_job_id":null,"html_url":"https://github.com/wangcaitao/wangcaitao-global-exception-handler","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangcaitao%2Fwangcaitao-global-exception-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangcaitao%2Fwangcaitao-global-exception-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangcaitao%2Fwangcaitao-global-exception-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangcaitao%2Fwangcaitao-global-exception-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangcaitao","download_url":"https://codeload.github.com/wangcaitao/wangcaitao-global-exception-handler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243715536,"owners_count":20335954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exception-handler","spring-boot"],"created_at":"2025-01-22T01:13:56.214Z","updated_at":"2026-05-20T09:31:11.182Z","avatar_url":"https://github.com/wangcaitao.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wangcaitao-global-exception-handler\n\nspring boot 统一异常处理\n\n## 使用\n\n1. 添加依赖\n    \n    ```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.wangcaitao\u003c/groupId\u003e\n        \u003cartifactId\u003ewangcaitao-global-exception-handler\u003c/artifactId\u003e\n        \u003cversion\u003e2.1.3\u003c/version\u003e\n    \u003c/dependency\u003e\n    ```\n\n1. 配置文件\n    \n    ```yaml\n    spring:\n      mvc:\n        throw-exception-if-no-handler-found: true\n      resources:\n        add-mappings: false\n    ```\n\n1. `@SpringBootApplication` 修改为 `@SpringBootApplication(scanBasePackages = {\"com.wangcaitao.global\", \"com.xxx.xxx\"})`, `com.xxx.xxx` 为启动类所在 `package`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangcaitao%2Fwangcaitao-global-exception-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangcaitao%2Fwangcaitao-global-exception-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangcaitao%2Fwangcaitao-global-exception-handler/lists"}