ree
This commit is contained in:
parent
28213c703e
commit
87675fad10
@ -7,7 +7,7 @@ network:
|
||||
rootPermission: minehq
|
||||
|
||||
http:
|
||||
port: 80
|
||||
port: 81
|
||||
keystoreFile:
|
||||
keystorePassword:
|
||||
|
||||
|
@ -35,6 +35,7 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
import fr.javatic.mongo.jacksonCodec.JacksonCodecProvider;
|
||||
@ -63,7 +64,7 @@ public class MongoConfig {
|
||||
.build()
|
||||
);
|
||||
|
||||
MongoDatabase database = mongoClient.getDatabase(connStr.getDatabase());
|
||||
MongoDatabase database = mongoClient.getDatabase(Objects.requireNonNull(connStr.getDatabase()));
|
||||
|
||||
database.getCollection("auditLog").createIndexes(ImmutableList.of(
|
||||
new IndexModel(new Document("user", 1)),
|
||||
|
Loading…
Reference in New Issue
Block a user