title: Spring converter can't be diseable conditional
body: <p>i use a Converter for OffsetDateTime for store they in SQLServer , but I dont want use it on H2, so i have try many think but it never work is always active....</p>
  <p>My converter :</p>
  <pre><code>@Conditional(OffsetDateTimeConverterCondition.class)
  @Converter(autoApply = true)
  public class OffsetDateTimeConverter implements AttributeConverter&lt;OffsetDateTime, String&gt; {
  
      private static final DateTimeFormatter FORMATTER_FROM_DB
              = DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd HH:mm:ss.nnnnnnn xxx&quot;);
      private static final DateTimeFormatter FORMATTER_TO_DB
              = DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd HH:mm:ss.nnnnnnnnn xxx&quot;);
  
      @Override
      public String convertToDatabaseColumn(OffsetDateTime attribute) {
          return attribute == null ? null : attribute.format(FORMATTER_TO_DB);
      }
  
      @Override
      public OffsetDateTime convertToEntityAttribute(String dbData) {
          return dbData == null ? null : OffsetDateTime.parse(dbData, FORMATTER_FROM_DB);
      }
  
  } 
  </code></pre>
  <p>My class of condition :</p>
  <pre><code>public class OffsetDateTimeConverterCondition extends AnyNestedCondition {
      public OffsetDateTimeConverterCondition() {
          super(ConfigurationPhase.REGISTER_BEAN);
      }
      
  
      @ConditionalOnProperty(name = &quot;required.datasource.dbms&quot;, havingValue = &quot;SQLSERVER&quot;)
      static class SQLSERVERCondition {
      }
  
      @ConditionalOnProperty(name = &quot;required.datasource.dbms&quot;, havingValue = &quot;ORACLE&quot;)
      static class ORACLECondition {
      }
  }
  </code></pre>
  <p>I have try to :</p>
  <pre><code>@Configuration
  public class OffsetDateTimeConverterCondition implements Condition {
  
      @Override
      public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
          
          return Arrays.asList(DBMS.SQLSERVER.name(), DBMS.ORACLE.name())
                       .contains(context.getEnvironment()
                                        .getProperty(&quot;required.datasource.dbms&quot;));
      }
  }
  </code></pre>
  <p>The setting is correctly set to SQLSERVER or H2, OffsetDateTimeConverterCondition return false when I am on H2 but it style active.</p>