Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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)

Metadata

Metadata

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions