How to change base url only for rest controllers? : <p>Is there any configuration option that allows to change base url only for rest controllers, for example if my api's base url is www.example.com/user/{id} becomes www.example.com/rest/user/{id} ?</p>

<p>I am using spring boot v1.3.2</p>

<p>I tried to create custom annotation which extends RestController by adding RequestMapping.
Here is the example, but it does not work.</p>

<pre><code>@Target(ElementType.TYPE) 
@Retention(RetentionPolicy.RUNTIME) 
@RestController 
@RequestMapping(value = "/rest", path = "/rest") 
public @interface MyRestController { }
</code></pre>
