Spring exception handling using HttpServletResponse vs ResponseEntity

后端 未结 0 1571
栀梦
栀梦 2020-12-03 06:29

I tried 2 different ways of implementing an exception handler for MethodArgumentNotValidException :

First one using ResponseEntity:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题