Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12756

`@ConditionalOnProperty` target property with no metadata

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.22.0
    • Fix Version/s: 2.22.2, 2.23.0
    • Component/s: camel-spring-boot
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

       Several auto-configurations use a condition on a property that has no metadata. As a result, trying to use it to customize the auto-configuration lead to a warning in an IDE.

      The report detected the following:
       

      org.apache.camel.model.rest.springboot.RestConfigurationDefinitionAutoConfiguration [camel.rest.enabled]
      org.apache.camel.spring.boot.TypeConversionConfiguration [camel.springboot.typeConversion]
      

      For the latter, the property in @ConditionalOnProperty must use the canonical format (i.e. must be camel.springboot.type-conversion)

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              snicoll Stephane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: