我正在开发一个dropwizard应用程序。我需要将其配置为从JsonProcessingExceptionMapper
记录异常。
我的一些config.yml文件:
server:
type: simple
connector:
type: http
port: 0
requestLog:
appenders: []
registerDefaultExceptionMappers: true
一直在查看JsonProcessingExceptionMapper
及其showDetail
财产,但无法弄明白。我正在使用dropwizard 1.2.3版
答案 0 :(得分:3)
找到它。我错过了属性detailedJsonProcessingExceptionMapper
:
server
registerDefaultExceptionMappers: true
detailedJsonProcessingExceptionMapper: true
在文档中找不到这个。谁能指引我到正确的地方?