Skip to content

格式解析报错了,捕获异常并发送第三方通知 #4699

@YiMin-L

Description

@YiMin-L

情景是:
yaml或yml格式配置错了;@value加载apollo中map结构格式错了;数据类型不对,比如代码中是个Integer,但apollo配置了个字符串;
遇到这些个报错,我想发送飞书消息通知下。apollo都把异常catch住了,处理方式只能是继承实现比较多的接口去处理,比如我是这样监听yaml格式配置错误这个问题的,要实现和修改四个类,太不友好了。能不能考虑优化下?提供个自定义的接口啥的
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions