@IocBean(name = "mongodbCredentialList")
    public List<MongoCredential> getCredentialList() {
        List<MongoCredential> credentials = new ArrayList<>();
        if (conf.containsKey(PROP_USERNAME)) {
            credentials.add(MongoCredential.createScramSha1Credential(conf.get(PROP_USERNAME), conf.get(PROP_SOURCE), conf.get(PROP_PASSWORD, "").toCharArray()));
        }
        return credentials;
    }
@ IocBean ( name = "mongodbCredentialList" ) public List < MongoCredential > getCredentialList ( ) { List < MongoCredential > credentials = new ArrayList < > ( ) ; if ( conf . containsKey ( PROP_USERNAME ) ) { credentials . add ( MongoCredential . createScramSha1Credential ( conf . get ( PROP_USERNAME ) , conf . get ( PROP_SOURCE ) , conf . get ( PROP_PASSWORD , "" ) . toCharArray ( ) ) ) ; } return credentials ; }
获取Mongo的认证信息

@return