

错误描述:如图,在练习SpringBoot定制错误的json数据时,处理结果显示message和exception接收不到后台抛出的异常。
解决办法:
在application.properties配置
server.error.include-message=always
server.error.include-exception=true

解决。
错误描述:如图,在练习SpringBoot定制错误的json数据时,处理结果显示message和exception接收不到后台抛出的异常。
解决办法:
在application.properties配置
server.error.include-message=always
server.error.include-exception=true
解决。
本文标题:SpringBoot定制错误的json数据时,处理结果显示mes
本文链接:https://www.haomeiwen.com/subject/eptgfktx.html
网友评论