title: How to write Java code to Spring Configuration File
body: <p>I have a spring configuration file for spring security. At beginning my file is getting from cache and when I do an operation it redirects me to the login page (However I can see page at first.) I want to solve that cache problem like that:</p>
  
  <pre><code>&lt;beans:property name="defaultTargetUrl" value="/index.html?Math.random()"/&gt;
  </code></pre>
  
  <p>However I think that it is not doing what I want, I am not sure. </p>
  
  <p>Any ideas?</p>