Question from the Spring test

How to handle errors in a REST call in Spring

Medium

In the case of a REST call, errors can be handled using

Author: W3D TeamStatus: PublishedQuestion passed 1208 times
Edit
2
Community Evaluations
developer avatar
LĂ©zard de sable gentil
19/10/2024
Dans le cas d'un appel REST, les erreurs peuvent ĂȘtre gĂ©rĂ©es Ă  l'aide - d'une mĂ©thode du controller annotĂ©e @ControllerAdvice - d'un controller implĂ©mentant l'interface ErrorAware - de l'exception ResponseStatusException