Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-133

Support Property Placeholder as MongoDB Port Number in Application Context Configuration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.0 M2
    • Fix Version/s: 1.0 M3
    • Component/s: Core
    • Environment:
      Windows

      Description

      This snippet of configuration:

      <util:properties id="mconf" location="classpath:/META-INF/spring/mongodb.properties"/>
      <mongo:mongo id="mongo" host="#

      {mconf['mongodb.host']}

      " port="#

      {mconf['mongodb.port']}

      " />

      will give a validation error as the port property only accepts positive integer (the XSD at http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd is too strict to only accept positive integer).

        Attachments

          Activity

            People

            Assignee:
            thomas.risberg Thomas Risberg
            Reporter:
            mario prambudi Mario Tinton Prambudi
            Last updater:
            Spring Issues Spring Issues
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified