title: spring @Value int autoparse like floats
body: <p>when I have values in a property file and read them in like</p>
  
  <pre><code>@Value(${ftpserver.maxconnections})
  private float maxConnections;
  </code></pre>
  
  <p>It works and spring auto parse a value if it is 0f.
  However there is no f,l,d for integer but I need an int.
  If I just write the number without any postfix Spring complains that it cannot parse a java.lang.String to int.
  According to various Internet sources it should work, but it does not.</p>
  
  <p>I set the file like</p>
  
  <pre><code>@PropertySource("classpath:application.properties")
  </code></pre>
  
  <p>and in the same configuration file </p>
  
  <pre><code>@Bean
  public static PropertySourcesPlaceholderConfigurer pspc() {
     return new PropertySourcesPlaceholderConfigurer();
  }
  </code></pre>
  
  <p>To recap I want this to work</p>
  
  <pre><code>@Value(${ftpserver.maxconnections})
  private float maxConnections;
  </code></pre>
  
  <p>and not get an Exception for cannot parse String to int from the Spring ContextLoader.</p>