Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11430 Add support for Spring Boot 2.0.x
  3. CAMEL-12499

Spring Boot 2 - Quoting map keys no longer needed

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.22.0
    • None
    • Unknown

    Description

      Spring Boot no longer requires that the map keys in the configuration properties are quoted, in 2.0 if the quotes are given they are taken literally. For example:

      custom.map['key'] = value

      populates the map property with key equal to "'key'".
      The recommended way would be to use the dot notation, or in this example:

      custom.map.key = value

      The angle brackets syntax is supported and should work but users need to be aware that the content between the angle brackets is taken verbatim.
      There is a test in the camel-kubernetes-starter that failed on CI because of this change.

      Attachments

        Activity

          People

            zregvart Zoran Regvart
            zregvart Zoran Regvart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: