Commit 3ad3faa9 authored by santiagoperaza93's avatar santiagoperaza93

Ajuste en conexioin a Mongo

parent 81864fbe
......@@ -11,13 +11,13 @@ public enum MongoClientProvider{
try {
client = new MongoClient(new MongoClientURI("mongodb://proyecto:proyecto.20@mongodb/proyectoBDMongo"));
} catch (Exception e) {
// Log it.
e.printStackTrace();
}
}
public MongoClient getMongoClient() {
if (client == null)
throw new RuntimeException();
client = new MongoClient(new MongoClientURI("mongodb://proyecto:proyecto.20@mongodb/proyectoBDMongo"));
return client;
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment