WebApplicationType
为一个枚举类,主要有三个枚举值:
public enum WebApplicationType{
/**
* The application should not run as a web application and should not start an
* embedded web server.
*/
NONE,
/**
* The application should run as a servlet-based web application and should start an
* embedded servlet web server.
*/
SERVLET,
/**
* The application should run as a reactive web application and should start an
* embedded reactive web server.
*/
REACTIVE;
……
}
通过判断是否可以找到一些类来判断web应用的类型&