SpringBoot配置全局异常

SpringBoot配置全局异常捕获时返回Json数据,但如果我需要Xml格式返回,该如何配置?

可借鉴参考json与xml的互转,http://www.itcdns.cn/problem/detail/1586412056123