how to apply user defined properties value to @RequestMapping
<p>I have several <code>@RequestMapping</code> which value will subject to change from "/XXX" to "/V100" on someday. So I need to define it in properties. I've googled and there's way using application.properties but I have to keep "/XXX" value in a user defined properties like a "local.properties". Is it possible to define <code>@RequestMapping</code> value on a user defined properties?</p>

<pre><code>@Controller
@RequestMapping("/XXX")
public class MyController {
...
}
</code></pre>

<p>** <strong>UPDATE</strong> : tried several hours and get it to work. </p>

<p>my.properties</p>

<pre><code>api.version=V100
</code></pre>

<p>mvc-context.xml</p>

<pre><code>&lt;context:property-placeholder ignore-unresolvable="true" location="/WEB-INF/config/property/my.properties"/&gt;
</code></pre>

<p>controller</p>

<pre><code>@RequestMapping("/${api.version}")
</code></pre>

<p>tomcat log</p>

<pre><code>localhost-startStop-1&gt; [2016-04-28 15:01:35.410] [INFO] [RequestMappingHandlerMapping] [534] Mapped "{[/V100/detail],methods=[GET]}"...
</code></pre>