Open junphine opened 7 years ago
class MongoDriver private MongoClientURI parseURL(String url, Properties defaults) { if (url == null) { return null; }
if (!StringUtils.startsWithIgnoreCase(url, PREFIX)) { return null; } //替换user: if(defaults.getProperty("user")!=null && defaults.getProperty("password")!=null ){ url = url.replace(PREFIX, PREFIX+defaults.getProperty("user")+":"+defaults.getProperty("password")+"@"); } LOGGER.info("Mongodb url:"+url);
提交pr
class MongoDriver private MongoClientURI parseURL(String url, Properties defaults) { if (url == null) { return null; }