title: Spring Boot bind @Value to Enum case insensitive
body: <p><strong>Enum</strong></p>
  
  <pre><code>public enum Property {
      A,
      AB,
      ABC;
  }
  </code></pre>
  
  <p><strong>Field</strong></p>
  
  <pre><code>@Value("${custom.property}")
  protected Property property;
  </code></pre>
  
  <p><strong>application.properties</strong> (lower case)</p>
  
  <pre><code>custom.property=abc
  </code></pre>
  
  <p>When I'm running application I have an error:</p>
  
  <blockquote>
    <p>Cannot convert value of type [java.lang.String] to required type
    [com.xxx.Property]: no matching editors or conversion
    strategy found.</p>
  </blockquote>
  
  <p>Whereas (upper case):</p>
  
  <pre><code>custom.property=ABC
  </code></pre>
  
  <p>Works fine. </p>
  
  <p>Is there a way to bind the value case insensitive? Like <em>ABC</em>, <em>Abc</em>, <em>AbC</em>, <em>abc</em> any pattern should work.</p>
  
  <p>NOTE: I saw this question - <a href="https://stackoverflow.com/questions/4617099/spring-3-0-mvc-binding-enums-case-sensitive">Spring 3.0 MVC binding Enums Case Sensitive</a> but in my case I have over 10 enums/values (and expect to have more) classes and to implement 10 different custom property binders would be painful, I need some generic solution.</p>