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

de.trustable.ca3s.core.ApplicationWebXml Maven / Gradle / Ivy

package de.trustable.ca3s.core;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import tech.jhipster.config.DefaultProfileUtil;

/**
 * This is a helper Java class that provides an alternative to creating a {@code web.xml}.
 * This will be invoked only when the application is deployed to a Servlet container like Tomcat, JBoss etc.
 */
public class ApplicationWebXml extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        // set a default to use when no profile is configured.
        DefaultProfileUtil.addDefaultProfile(application.application());
        return application.sources(Ca3SApp.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy