title: Spring 3: disable SpEL evaluation of a bean property value?
body: <p>We're in the process of updating our apps from Spring 2.5 to 3.0 and we've hit a problem with the new SpEL evaluation of bean properties.</p>
  
  <p>We've been using an in-house templating syntax in one module which unfortunately uses the same "#{xyz}" markup as SpEL. We have a few beans which take string's containing these expressions as properties but spring assumes they are SpEL expressions and throws a SpelEvaluationException when it tries to instantiate the bean.</p>
  
  <p>e.g.</p>
  
  <pre><code>&lt;bean id="templatingEngine" class="com.foo.TemplatingEngine"&gt;
     &lt;property name="barTemplate" value="user=#{uid}&amp;country=#{cty}"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Is it possible to disable SpEL evaluation, ideally per-bean, but alternatively for the whole application context?</p>
  
  <p>Alternatively is there a way to escape the values?</p>
  
  <p>Thanks,
  Stephen</p>