Class ServletCustomizer
- java.lang.Object
-
- com.karafra.bitchutedl.configuration.customizer.ServletCustomizer
-
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>
@Component public class ServletCustomizer extends Object implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>
Customizer for Tomcat servlet. This customizer had to be added because Spring did not want to recognize application/woff2-font MIME type.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Karafra
- See Also:
- SO thread about this
-
-
Constructor Summary
Constructors Constructor Description ServletCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory factory)
-
-
-
Method Detail
-
customize
public void customize(org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory factory)
- Specified by:
customizein interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>
-
-