S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation can be used to expose a method as a REST endpoint in Spring Boot?

  • (A) @WebMethod
  • (B) @GetMapping
  • (C) @RestService
  • (D) @RemoteMethod
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@GetMapping is used to map HTTP GET requests to specific controller methods.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.