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

PropertyPlaceHolder not loading Property, thinks it is a Parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.2, 2.17.0
    • 2.16.3, 2.17.1, 2.18.0
    • camel-swagger, rest
    • None
    • Unknown

    Description

      When loading a standard rest service into Camel and setting up Swagger.

      rest("{{BASE_URL}}").get("/{customerId}").description("...")...
      

      The Base_URL portion is
      1. interpreted as a parameter much like

      {customerId}

      , i.e. the JSON displays: "

      {BASE_URL}

      " and "customerId" as the parameter name (removing outside curly brace)
      2. the associated property is not loaded from the properties file

      The Property Place Holder portion though works for the rest-dsl configuration:

       restConfiguration().apiProperty("api.title", "{{spring.application.name}}")
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            flavouski Flavel Heyman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: