2021-06-29 16:17:06 +02:00
|
|
|
package eu.dnetlib.dnetrolemanagement;
|
|
|
|
|
2021-09-29 14:25:09 +02:00
|
|
|
import eu.dnetlib.dnetrolemanagement.config.properties.APIProperties;
|
2021-07-06 10:20:00 +02:00
|
|
|
import eu.dnetlib.dnetrolemanagement.config.properties.RedisProperties;
|
|
|
|
import eu.dnetlib.dnetrolemanagement.config.properties.RegistryProperties;
|
2021-06-29 16:17:06 +02:00
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2021-07-06 10:20:00 +02:00
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
import org.springframework.context.annotation.PropertySource;
|
|
|
|
import org.springframework.context.annotation.PropertySources;
|
2021-06-29 16:17:06 +02:00
|
|
|
|
2021-07-06 10:20:00 +02:00
|
|
|
@SpringBootApplication(scanBasePackages = {"eu.dnetlib.dnetrolemanagement"})
|
|
|
|
@PropertySources({
|
|
|
|
@PropertySource("classpath:registry.properties"),
|
|
|
|
@PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
|
|
|
|
})
|
2021-09-29 14:25:09 +02:00
|
|
|
@EnableConfigurationProperties({RegistryProperties.class, RedisProperties.class, APIProperties.class})
|
2021-06-29 16:17:06 +02:00
|
|
|
public class DnetRoleManagementApplication {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
SpringApplication.run(DnetRoleManagementApplication.class, args);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|