I am using Spring framework to create api. I want two urls defined at the class level
@RequestMapping({"/jobs","/subs"})
and I want to call method 1 when the url is /host:port/jobs
and I want to call method 2 when the url is /host:port/subs
Is there a way to do this ?
I could remove the mapping at the class level and define it on the method level but I do not want to do that as I don't want to have to define the mapping for all the other methods.
RequestMappingfor each method.