1.

Can you create a controller without using @Controller or @RestController annotations?

Answer»
  • Yes! You can create a CONTROLLER without @Controller or @RestController annotations by annotating the SPRING MVC Controller classes USING the @COMPONENT annotation. In this case, the real job of request MAPPING to handler method is done using the @RequestMapping annotation.


Discussion

No Comment Found