Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Property Placeholder as MongoDB Port Number in Application Context Configuration [DATAMONGO-133] #1070

Closed
spring-projects-issues opened this issue May 11, 2011 · 1 comment
Assignees
Labels
in: core type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented May 11, 2011

Mario Tinton Prambudi opened DATAMONGO-133 and commented

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)


Affects: 1.0 M2

2 votes, 1 watchers

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented May 12, 2011

Thomas Risberg commented

Yes, I just noticed there are a couple of those non-string attributes - they should all be changed to accept strings for this reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants