title: How to use SPEL along with regex in RequestMapping
body: <p>I have a controller method as follows</p>
  
  <pre><code>@RequestMapping(value = "/{fruitName:Mango|Orange|Grapes}", method = RequestMethod.GET)
  public String viewFruit(ModelMap model, @PathVariable String fruitName) {
    ...
  }
  </code></pre>
  
  <p>Here I am hard-coding <strong>Mango, Orange and Grapes</strong>, such that if url matches with any of these, then only this method should execute.</p>
  
  <p>What I want to do is that, instead of hard-coding these fruits here. I want to declare them in a properties file and by using SPEL, I should bring it here. </p>
  
  <p>Is this possible to do?</p>
  
  <p>I tried code below for this, but failed with error:</p>
  
  <pre><code>@RequestMapping(value = "/{fruitName:#{fruit['seasonFruit.requestMapping']}}", method = RequestMethod.GET)
  public String viewFruit(ModelMap model, @PathVariable String fruitName) {   
      ...
  }
  </code></pre>
  
  <p>For following properties File (<strong>fruit.properties</strong>)</p>
  
  <pre><code>seasonFruit.requestMapping = Mango|Orange|Grapes
  </code></pre>
  
  <p>Please suggest, how this could be achieved?</p>