S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does @ResponseStatus do in Spring Boot?

  • (A) It sets the response status code for an exception or controller method
  • (B) It handles request mapping
  • (C) It maps headers
  • (D) It enables auto-configuration
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey

@ResponseStatus is used to specify the HTTP status code for a method or exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.