APSpringBootApplication.java
package org.linkedopenactors.rdfpub;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.io.ClassPathResource;
@SpringBootApplication(scanBasePackages = {
"org.linkedopenactors.rdfpub.app",
"org.linkedopenactors.rdfpub.adapter.driving",
"org.linkedopenactors.rdfpub.adapter.driven",
"org.linkedopenactors.rdfpub.domain",
"org.linkedopenactors.rdfpub.domain.service",
"org.linkedopenactors.rdfpub.config",
"org.eclipse.rdf4j.http.server.readonly.sparql",
"org.linkedopenactors.rdfpub.rdf4j"
}, exclude = { SolrAutoConfiguration.class })
public class APSpringBootApplication {
public static void main(String[] args) {
SpringApplication.run(APSpringBootApplication.class, args);
}
@Bean
public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
PropertySourcesPlaceholderConfigurer propsConfig
= new PropertySourcesPlaceholderConfigurer();
propsConfig.setLocation(new ClassPathResource("git.properties"));
propsConfig.setIgnoreResourceNotFound(true);
propsConfig.setIgnoreUnresolvablePlaceholders(true);
return propsConfig;
}
}