1
|
package eu.dnetlib.uoaadmintools.configuration.properties;
|
2
|
|
3
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
4
|
|
5
|
@ConfigurationProperties("admintool.mongodb")
|
6
|
public class MongoConfig {
|
7
|
|
8
|
private String host;
|
9
|
private String database;
|
10
|
private String username;
|
11
|
private String password;
|
12
|
private int port;
|
13
|
|
14
|
|
15
|
public String getHost() {
|
16
|
return host;
|
17
|
}
|
18
|
|
19
|
public void setHost(String host) {
|
20
|
this.host = host;
|
21
|
}
|
22
|
|
23
|
public String getDatabase() {
|
24
|
return database;
|
25
|
}
|
26
|
|
27
|
public void setDatabase(String database) {
|
28
|
this.database = database;
|
29
|
}
|
30
|
|
31
|
public String getUsername() {
|
32
|
return username;
|
33
|
}
|
34
|
|
35
|
public void setUsername(String username) {
|
36
|
this.username = username;
|
37
|
}
|
38
|
|
39
|
public String getPassword() {
|
40
|
return password;
|
41
|
}
|
42
|
|
43
|
public void setPassword(String password) {
|
44
|
this.password = password;
|
45
|
}
|
46
|
|
47
|
public int getPort() {
|
48
|
return port;
|
49
|
}
|
50
|
|
51
|
public void setPort(int port) {
|
52
|
this.port = port;
|
53
|
}
|
54
|
}
|