如何將tomcat改為開發模式
阿新 • • 發佈:2019-02-19
在conf目錄下的web.xml新增:
[html] view plain copy print?- <servlet>
- <servlet-name>jsp</servlet-name>
- <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
- <init-param>
- <param-name>fork</param-name>
-
<
- </init-param>
- <init-param>
- <param-name>xpoweredBy</param-name>
- <param-value>false</param-value>
- </init-param>
- <init-param>
-
<param-name>development
- <param-value>true</param-value>
- </init-param>
- <load-on-startup>3</load-on-startup>
- </servlet>
<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>
一般需要新增