org.springframework.boot.web.context

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.context.MissingWebServerFactoryBeanException
  • All Implemented Interfaces:
    java.io.Serializable


    public class MissingWebServerFactoryBeanException
    extends org.springframework.beans.factory.NoSuchBeanDefinitionException
    Exception thrown when there is no WebServerFactory bean of the required type defined in a WebServerApplicationContext.
    Since:
    2.7.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      WebApplicationType getWebApplicationType()
      Returns the type of web application for which a WebServerFactory bean was missing.
      • Methods inherited from class org.springframework.beans.factory.NoSuchBeanDefinitionException

        getBeanName, getBeanType, getNumberOfBeansFound, getResolvableType
      • Methods inherited from class org.springframework.core.NestedRuntimeException

        contains, getMessage, getMostSpecificCause, getRootCause
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MissingWebServerFactoryBeanException

        public MissingWebServerFactoryBeanException(java.lang.Class<? extends WebServerApplicationContext> webServerApplicationContextClass,
                                                    java.lang.Class<? extends WebServerFactory> webServerFactoryClass,
                                                    WebApplicationType webApplicationType)
        Create a new MissingWebServerFactoryBeanException.
        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 Detail

      • getWebApplicationType

        public WebApplicationType getWebApplicationType()
        Returns the type of web application for which a WebServerFactory bean was missing.
        Returns:
        the type of web application