34 lines
640 B
Plaintext
34 lines
640 B
Plaintext
package eu.dnetlib.lbs.properties;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
@ConfigurationProperties(prefix = "lbs.database")
|
|
public class DatabaseProperties {
|
|
|
|
@NotNull
|
|
private String driverName;
|
|
@NotNull
|
|
private String url;
|
|
|
|
public String getDriverName() {
|
|
return this.driverName;
|
|
}
|
|
|
|
public void setDriverName(final String driverName) {
|
|
this.driverName = driverName;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return this.url;
|
|
}
|
|
|
|
public void setUrl(final String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
}
|