Class 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.server.context.MissingWebServerFactoryBeanException
- All Implemented Interfaces:
- Serializable
Exception thrown when there is no 
WebServerFactory bean of the required type
defined in a WebServerApplicationContext.- Since:
- 4.0.0
- Author:
- Guirong Hu, Andy Wilkinson
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMissingWebServerFactoryBeanException(Class<? extends WebServerApplicationContext> webServerApplicationContextClass, Class<? extends WebServerFactory> webServerFactoryClass, WebApplicationType webApplicationType) Create a newMissingWebServerFactoryBeanException.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the type of web application for which aWebServerFactorybean was missing.Methods inherited from class NoSuchBeanDefinitionExceptiongetBeanName, getBeanType, getNumberOfBeansFound, getResolvableTypeMethods inherited from class NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
MissingWebServerFactoryBeanExceptionpublic MissingWebServerFactoryBeanException(Class<? extends WebServerApplicationContext> webServerApplicationContextClass, Class<? extends WebServerFactory> webServerFactoryClass, WebApplicationType webApplicationType) Create a newMissingWebServerFactoryBeanException.- Parameters:
- webServerApplicationContextClass- the class of the WebServerApplicationContext that required the WebServerFactory
- webServerFactoryClass- the class of the WebServerFactory that was missing
- webApplicationType- the type of the web application
 
 
- 
- 
Method Details- 
getWebApplicationTypeReturns the type of web application for which aWebServerFactorybean was missing.- Returns:
- the type of web application
 
 
-