title: How change property values at runtime in Spring
body: <p>I need change properties in my application at runtime. 
  For example I have a service which send a e-mail with resset password. Request is valid 12 hours. But I want to change this time to 24 or more at runtime. I need to give the opportunity to this action for admin.</p>
  
  <p>My property file has </p>
  
  <pre><code>hours.expired=12
  </code></pre>
  
  <p>My service </p>
  
  <pre><code>private int hoursExpiredPassword;
  
  public void setHoursExpiredPassword(int hoursExpiredPassword) {
      this.hoursExpiredPassword = hoursExpiredPassword;
  }
  
  @Override
  public ERequests checkRequest(String number, Date date) {
      PasswordResetRequest findedObject = passwordResetRequestDao.getObjectByElement(PasswordResetRequest.class, "requestId", number);
      if (findedObject == null){
          return ERequests.BAD_REQUEST;
      }else{
          long result = getDateDiff(findedObject.getRequestDate(),date,TimeUnit.HOURS);
          if(result &gt;= hoursExpiredPassword){
              return ERequests.EXPIRED_REQUEST;
          }
      }
      return ERequests.CORRECT_REQUEST;
  }
  </code></pre>
  
  <p>my spring xml configuration</p>
  
  <pre><code>&lt;bean id="passwordResetRequestService" class="pl.lublin.example.services.servicesDAO.PasswordResetRequestService"&gt;
      &lt;property name="passwordResetRequestDao" ref="passwordResetRequestDao"&gt;&lt;/property&gt;
      &lt;property name="hoursExpiredPassword" value="${hours.expired}"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Could I change this value in someway at runtime?</p>