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