Ordered RequestMapping in spring MVC
around this issue An exact match for a RequestMapping will take precedence
over one with a PathVariable. So you would have two request mappings like
you pointed out. One to handle the specific url, and the variable version
will catch everything else.
Date : October 24 2020, 11:12 AM , By : user3848870