Example usage for org.springframework.boot WebApplicationType NONE

List of usage examples for org.springframework.boot WebApplicationType NONE

Introduction

In this page you can find the example usage for org.springframework.boot WebApplicationType NONE.

Prototype

WebApplicationType NONE

To view the source code for org.springframework.boot WebApplicationType NONE.

Click Source Link

Document

The application should not run as a web application and should not start an embedded web server.

Usage

From source file:org.springframework.cloud.function.context.AbstractSpringFunctionAdapterInitializer.java

private SpringApplication springApplication() {
    Class<?> sourceClass = this.configurationClass;
    SpringApplication application = new org.springframework.cloud.function.context.FunctionalSpringApplication(
            sourceClass);//from ww  w.j ava 2  s . com
    application.setWebApplicationType(WebApplicationType.NONE);
    return application;
}