There is a way to place value of the path attribute of the @RequestMapping annotation in a properties file. For example:
path.status=/status
And use it as follows:
@RequestMapping(path ="${path.status}")
...
How to do this if a path variable is present?
path.status-message=/status/{message_id}