Spring MVC 400 错误返回

返回当字段为传入Controllor对应指定方法中
HTTP Status 400 - Required String parameter 'phone' is not present

Controllor
里面是这样写的
@RequestParam(value = "phone")


请问我怎么让它返回时json的错误 而不是txt/html的错误
而且是正常的200

猜你喜欢

转载自lykin-1972.iteye.com/blog/2180091