Skip to content

MongoDbFactoryParser should allow id attribute in addition to client-uri [DATAMONGO-1293] #2210

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

Closed
spring-projects-issues opened this issue Sep 24, 2015 · 1 comment
Assignees
Labels
in: core Issues in core support type: bug A general bug

Comments

@spring-projects-issues
Copy link

Viktor Khoroshko opened DATAMONGO-1293 and commented

The following isn't working: <mongo:db-factory id="myMongoDbFactory" client-uri="mongodb://localhost:27020/test"/>. The following exception is thrown:

Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Configure either Mongo URI or details individually!
Offending resource: class path resource [jingit-financial-services-event-mongo.xml]
	at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:72)
	at org.springframework.data.mongodb.config.MongoDbFactoryParser.parseInternal(MongoDbFactoryParser.java:77)

Affects: 1.8 GA (Gosling)

Referenced from: pull request #328

Backported to: 1.8.1 (Gosling SR1)

@spring-projects-issues
Copy link
Author

Oliver Drotbohm commented

Would you mind having a look? PR looks decent to me, except the one comment I made

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

No branches or pull requests

2 participants