spring-data-mongo-1.8.2.RELEASE连接mongodb副本集备忘

一,mongo连接配置文件
 
  



    

    
        
            
                classpath:mongo.properties
            
        
    

    

    

    
        
        
    

    
        
    

    

二,库配置
 
  
mongo.config.replica.set.address=192.168.1.XXX:27017,192.168.1.113.XXX:27018,192.168.1.xxx:27019
mongo.config.replica.set.name=repl
mongo.config.database=test
mongo.config.username=
mongo.config.password=
mongodb.connection=


你可能感兴趣的:(mongo,spring)