标签: mongodb spring-boot spring-data
mongodb://mongo-write,mongo-read/db?slaveOk=true无法正常工作
mongodb://mongo-write,mongo-read/db?slaveOk=true
如何在spring boot yml config中使用?
答案 0 :(得分:0)
使用?readPreference=secondary替换?slaveOk=true
?readPreference=secondary
?slaveOk=true