dnet-role-management/src/main/java/eu/dnetlib/dnetrolemanagement/DnetRoleManagementApplicati...

25 lines
1.1 KiB
Java
Raw Normal View History

2021-06-29 16:17:06 +02:00
package eu.dnetlib.dnetrolemanagement;
import eu.dnetlib.dnetrolemanagement.config.properties.APIProperties;
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;
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
@SpringBootApplication(scanBasePackages = {"eu.dnetlib.dnetrolemanagement"})
@PropertySources({
@PropertySource("classpath:registry.properties"),
@PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
})
@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);
}
}