Wednesday, January 2, 2019

Accessing multiple controllers with same request mapping?

In Spring Web MVC this is not possible. Each mapping must be unique in your context. If not, you will receive a RuntimeException during context initialization.
You cannot even use parameters to differentiate your endpoints because they are not evaluated while searching for a suitable handler (applicable for Servlet environments). From @RequestMapping.

No comments:

Post a Comment

Spring Annotations