24 lines
459 B
Java
24 lines
459 B
Java
package eu.dnetlib.broker.common.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 url;
|
|
|
|
public String getUrl() {
|
|
return this.url;
|
|
}
|
|
|
|
public void setUrl(final String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
}
|