feat: DB 분리 적용
parent
cd3ce2fc34
commit
6345c50f54
@ -0,0 +1,7 @@
|
||||
package com.xit.core.oauth2.config.properties;
|
||||
|
||||
public interface IDatabaseProperties {
|
||||
String getHostIp();
|
||||
String getDbName();
|
||||
int getPort();
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.xit.core.oauth2.config.properties;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@ConfigurationProperties(prefix = "mpower.master")
|
||||
public class MasterDatabaseProperties implements IDatabaseProperties{
|
||||
private String hostIp;
|
||||
private int port;
|
||||
private String dbName;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.xit.core.oauth2.config.properties;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@ConfigurationProperties(prefix = "mpower.slave")
|
||||
public class SlaveDatabaseProperties implements IDatabaseProperties{
|
||||
private String hostIp;
|
||||
private int port;
|
||||
private String dbName;
|
||||
}
|
Loading…
Reference in New Issue