We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
options
现在的写法在以下场景会有问题: 当connectionString带options的时候,collection会解析不出来,比如下面的connectionString: mongodb://arex:iLoveArex@localhost:27017/arex_storage_db?replicaSet=66950&authSource=admin&journal=true connectionString就变成了 mongodb://arex:iLoveArex@localhost:27017/arex_storage_db?replicaSet=66950&authSource=admin&journal=true.logs .logs被加在了最后 那com.arextest.web.api.service.beans.MongoDb4Provider#MongoDb4Provider在new ConnectionString()的时候,com.mongodb.ConnectionString#ConnectionString 在解析的时候就解析不到logs了,会把journal=true.logs当成一个option,正确的应该是 mongodb://arex:iLoveArex@localhost:27017/arex_storage_db.logs?replicaSet=66950&authSource=admin&journal=true
mongodb://arex:iLoveArex@localhost:27017/arex_storage_db?replicaSet=66950&authSource=admin&journal=true
.logs
com.arextest.web.api.service.beans.MongoDb4Provider#MongoDb4Provider
new ConnectionString()
com.mongodb.ConnectionString#ConnectionString
journal=true.logs
mongodb://arex:iLoveArex@localhost:27017/arex_storage_db.logs?replicaSet=66950&authSource=admin&journal=true
The text was updated successfully, but these errors were encountered:
binyu1005
Successfully merging a pull request may close this issue.
现在的写法在以下场景会有问题:
当connectionString带options的时候,collection会解析不出来,比如下面的connectionString:
mongodb://arex:iLoveArex@localhost:27017/arex_storage_db?replicaSet=66950&authSource=admin&journal=true
connectionString就变成了 mongodb://arex:iLoveArex@localhost:27017/arex_storage_db?replicaSet=66950&authSource=admin&journal=true
.logs
.logs被加在了最后
那
com.arextest.web.api.service.beans.MongoDb4Provider#MongoDb4Provider
在new ConnectionString()
的时候,com.mongodb.ConnectionString#ConnectionString
在解析的时候就解析不到logs了,会把journal=true.logs
当成一个option,正确的应该是mongodb://arex:iLoveArex@localhost:27017/arex_storage_db.logs?replicaSet=66950&authSource=admin&journal=true
The text was updated successfully, but these errors were encountered: