All Downloads are FREE. Search and download functionalities are using the official Maven repository.

JavaJaxRS.cxf.server.SpringBootApplication.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
package {{apiPackage}};

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;

@ImportResource({"classpath:/ApplicationContext.xml"})
@EnableAutoConfiguration
public class SpringBootApplication extends SpringBootServletInitializer {
    
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SpringBootApplication.class);
    }
    
    public static void main(String[] args) {
        SpringApplication.run(SpringBootApplication.class, args);
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy