ExceptionTranslator 是jhipster自己提供异常处理机制,其中org.zalando.problem.Problem#getDetail可以拿到异常发生的信息,getStatus来获取状态码,定制自己异常返回格式,就可以了
jhipster自定义异常处理
猜你喜欢
转载自blog.csdn.net/m0_38105216/article/details/79534280
今日推荐
周排行