WEB-INF.web.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> <context-param> <param-name>application.class</param-name> <param-value>${application.class}</param-value> </context-param> <listener> <listener-class>org.jooby.servlet.ServerInitializer</listener-class> </listener> <servlet> <servlet-name>jooby</servlet-name> <servlet-class>org.jooby.servlet.ServletHandler</servlet-class> <load-on-startup>0</load-on-startup> <!-- MultiPart setup --> <multipart-config> <file-size-threshold>0</file-size-threshold> <max-request-size>${war.maxRequestSize}</max-request-size> </multipart-config> </servlet> <servlet-mapping> <servlet-name>jooby</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app>