2019-11-04 10:03:49 +01:00
|
|
|
package eu.dnetlib.uoamonitorservice;
|
|
|
|
|
2020-11-11 11:52:38 +01:00
|
|
|
import eu.dnetlib.uoaauthorizationlibrary.configuration.AuthorizationConfiguration;
|
2019-11-04 10:03:49 +01:00
|
|
|
import eu.dnetlib.uoamonitorservice.configuration.properties.MongoConfig;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
2020-11-11 11:52:38 +01:00
|
|
|
import org.springframework.context.annotation.Import;
|
2019-11-04 10:03:49 +01:00
|
|
|
import org.springframework.context.annotation.PropertySource;
|
|
|
|
import org.springframework.context.annotation.PropertySources;
|
2020-06-17 12:56:52 +02:00
|
|
|
//uoahelptexts
|
2020-11-11 11:52:38 +01:00
|
|
|
@SpringBootApplication(scanBasePackages = {"eu.dnetlib.uoamonitorservice", "eu.dnetlib.uoaadmintoolslibrary"
|
|
|
|
// , "eu.dnetlib.uoaauthorizationlibrary"
|
|
|
|
})
|
2019-11-04 10:03:49 +01:00
|
|
|
@PropertySources({
|
2020-11-11 11:52:38 +01:00
|
|
|
@PropertySource("classpath:authorization.properties"),
|
2019-11-04 10:03:49 +01:00
|
|
|
@PropertySource("classpath:monitorservice.properties"),
|
2020-11-11 11:52:38 +01:00
|
|
|
@PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
|
2019-11-04 10:03:49 +01:00
|
|
|
})
|
|
|
|
|
2020-11-11 11:52:38 +01:00
|
|
|
//SecurityConfig.class,
|
|
|
|
@EnableConfigurationProperties({ MongoConfig.class})
|
2019-11-04 10:03:49 +01:00
|
|
|
|
2020-11-11 11:52:38 +01:00
|
|
|
@Import(AuthorizationConfiguration.class)
|
2019-11-04 10:03:49 +01:00
|
|
|
public class UoaMonitorServiceApplication {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
SpringApplication.run(UoaMonitorServiceApplication.class, args);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|