Looking at the source code, I got an idea of how to do this without returning to the manual description of the handler (pre-annotation) (which is also a way to implement what you need).
Spring allows you to use property placeholder configurators in @RequestMapping values. Thus, you can use this fact and define @RequestMapping as:
@Controller @RequestMapping("${routing.property.path}") public class CommonPropertyController { .... }
Then you can simply define the PropertySourcesPlaceholderConfigurer with the right properties in the context of your application, and you are good to go.
UPDATE You can also specify the default value using the property placeholder if you want to have a fallback if the property is not specified:
@RequestMapping("${routing.property.path:/property}")
source share