title: Modify mapping route depending on spring active profile
body: <p>I would like to have a different mapping route of my controller for develop and production environments. I have tried this with <code>@ConditionalOnExpression</code>, but it seems that it removes the <code>@RequestMapping</code> annotation as well if the condition is false:</p>
  
  <pre><code>@RestController
  @RequestMapping(value = "/dev")
  @ConditionalOnExpression("#{environment.getActiveProfiles()[0] == 'DEV'}")
  public class CheckoutController {
  </code></pre>
  
  <p>I would like to add the prefix "/dev" to all mapping routes if the active profile is DEV.</p>