{"id":16178839,"url":"https://github.com/wangji92/rpc-exception-handler-spring-boot-start","last_synced_at":"2025-04-07T11:41:16.543Z","repository":{"id":57719472,"uuid":"366549578","full_name":"WangJi92/rpc-exception-handler-spring-boot-start","owner":"WangJi92","description":"rpc exception handler reference spring mvc gloable exception hander annotation RpcServiceAdvice==ControllerAdvice RpcServiceExceptionHandler==ExceptionHandler is much easier to use.already support dubbo 2.7.0 and  dubbo 2.7.10 ","archived":false,"fork":false,"pushed_at":"2021-05-16T16:53:08.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T14:21:41.131Z","etag":null,"topics":["dubbo","dubbo-filter","rpc-expection-handler","spring-boot-starter"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WangJi92.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-12T00:42:48.000Z","updated_at":"2021-06-14T14:02:18.000Z","dependencies_parsed_at":"2022-08-28T17:51:50.581Z","dependency_job_id":null,"html_url":"https://github.com/WangJi92/rpc-exception-handler-spring-boot-start","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangJi92%2Frpc-exception-handler-spring-boot-start","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangJi92%2Frpc-exception-handler-spring-boot-start/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangJi92%2Frpc-exception-handler-spring-boot-start/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangJi92%2Frpc-exception-handler-spring-boot-start/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WangJi92","download_url":"https://codeload.github.com/WangJi92/rpc-exception-handler-spring-boot-start/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648837,"owners_count":20972942,"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":["dubbo","dubbo-filter","rpc-expection-handler","spring-boot-starter"],"created_at":"2024-10-10T05:24:40.356Z","updated_at":"2025-04-07T11:41:16.515Z","avatar_url":"https://github.com/WangJi92.png","language":"Java","readme":"# rpc-exception-handler-spring-boot-start\n### 我想干啥？\nspring mvc 有 @ControllerAdvice and @ExceptionHandler \n最近在处理外部暴露的服务需要进行异常的处理,通过Aop 去实现的，不够优雅，代码 判断各种异常的处理，非常的恶心~ 是否可以做个 \n类似 spring 的这种全局异常处理器 @RpcServiceAdvice and @RpcServiceExceptionHandler。\n\n* 需要解析全局的 @RpcServiceAdvice。\n\n* 参考spring mvc 还需要知道当前接口实现类中的是否含有 @RpcServiceExceptionHandler 优先级提升，找不到在去处理全局的@RpcServiceAdvice。\n\n不过这里要注意一下 对于外部暴露的dubbo spi 服务都有统一的返回值XXXResult 不然全局处理器和方法返回的值类型不一样会导致消费者端接收失败。\n一般这种异常都是记录日志，返回失败标识、提示信息等等即可。\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangji92%2Frpc-exception-handler-spring-boot-start","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangji92%2Frpc-exception-handler-spring-boot-start","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangji92%2Frpc-exception-handler-spring-boot-start/lists"}