Skip to content

Commit

Permalink
Update MongoDatabaseCFG.java
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-lungarella committed Oct 4, 2023
1 parent d248907 commit d5c6890
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ public MongoDatabaseFactory mongoDatabaseFactoryFse() {
.build();
return new SimpleMongoClientDatabaseFactory(MongoClients.create(mongoClientSettings), mongoData.getSchemaName());
}

@Bean
@Qualifier("mongo-factory-rules")
public MongoDatabaseFactory mongoDatabaseFactoryRules() {
ConnectionString connectionString = new ConnectionString(mongoFse.getUri());
MongoClientSettings mongoClientSettings = MongoClientSettings.builder()
.applyConnectionString(connectionString)
.build();
return new SimpleMongoClientDatabaseFactory(MongoClients.create(mongoClientSettings), mongoData.getSchemaName());
}

@Bean
@Qualifier("mongo-factory-rules")
Expand Down

0 comments on commit d5c6890

Please sign in to comment.