2021-11-05 09:19:44 +01:00
|
|
|
package eu.dnetlib.loginservice;
|
|
|
|
|
2022-10-10 14:55:40 +02:00
|
|
|
import eu.dnetlib.loginservice.properties.APIProperties;
|
2021-11-05 09:19:44 +01: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;
|
|
|
|
import eu.dnetlib.loginservice.properties.Properties;
|
|
|
|
|
|
|
|
@SpringBootApplication(scanBasePackages = {"eu.dnetlib.loginservice"})
|
|
|
|
@PropertySources({
|
2021-11-05 09:26:47 +01:00
|
|
|
@PropertySource("classpath:authentication.properties"),
|
2021-11-05 09:19:44 +01:00
|
|
|
@PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
|
|
|
|
})
|
2022-10-10 14:55:40 +02:00
|
|
|
@EnableConfigurationProperties({Properties.class, APIProperties.class})
|
2021-11-05 09:19:44 +01:00
|
|
|
public class LoginServiceApplication {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
SpringApplication.run(LoginServiceApplication.class, args);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|