类 MissingWebServerFactoryBeanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.factory.NoSuchBeanDefinitionException
org.springframework.boot.web.context.MissingWebServerFactoryBeanException
- 所有已实现的接口:
Serializable
Exception thrown when there is no
WebServerFactory
bean of the required type
defined in a WebServerApplicationContext
.- 从以下版本开始:
- 2.7.0
- 作者:
- Guirong Hu, Andy Wilkinson
- 另请参阅:
-
构造器概要
构造器构造器说明MissingWebServerFactoryBeanException
(Class<? extends WebServerApplicationContext> webServerApplicationContextClass, Class<? extends WebServerFactory> webServerFactoryClass, WebApplicationType webApplicationType) Create a newMissingWebServerFactoryBeanException
. -
方法概要
从类继承的方法 org.springframework.beans.factory.NoSuchBeanDefinitionException
getBeanName, getBeanType, getNumberOfBeansFound, getResolvableType
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
-
构造器详细资料
-
MissingWebServerFactoryBeanException
public MissingWebServerFactoryBeanException(Class<? extends WebServerApplicationContext> webServerApplicationContextClass, Class<? extends WebServerFactory> webServerFactoryClass, WebApplicationType webApplicationType) Create a newMissingWebServerFactoryBeanException
.- 参数:
webServerApplicationContextClass
- the class of the WebServerApplicationContext that required the WebServerFactorywebServerFactoryClass
- the class of the WebServerFactory that was missingwebApplicationType
- the type of the web application
-
-
方法详细资料
-
getWebApplicationType
Returns the type of web application for which aWebServerFactory
bean was missing.- 返回:
- the type of web application
-