Class EmbeddedTomcatCustomizer

  • All Implemented Interfaces:
    org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>

    @Component
    @ConditionalOnProperty("server.servlet.register-default-servlet")
    public class EmbeddedTomcatCustomizer
    extends Object
    implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>
    Adds content and client (babylon) directories to content path, and enables directory listings. Conditional on property server.servlet.register-default-servlet, as it may mess up tomcat context config and break the application startup (of executable jar that uses vrspace as library). TODO: paths should be configurable
    Author:
    joe
    • Constructor Detail

      • EmbeddedTomcatCustomizer

        public EmbeddedTomcatCustomizer()
    • Method Detail

      • customize

        public void customize​(org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory factory)
        Specified by:
        customize in interface org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>