1. 程式人生 > >如何將tomcat改為開發模式

如何將tomcat改為開發模式

在conf目錄下的web.xml新增:

[html] view plain copy  print?
  1. <servlet>
  2.         <servlet-name>jsp</servlet-name>
  3.         <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  4.         <init-param>
  5.             <param-name>fork</param-name>
  6.             <
    param-value>false</param-value>
  7.         </init-param>
  8.         <init-param>
  9.             <param-name>xpoweredBy</param-name>
  10.             <param-value>false</param-value>
  11.         </init-param>
  12.         <init-param>
  13.             <param-name>development
    </param-name>
  14.             <param-value>true</param-value>
  15.         </init-param>
  16.             <load-on-startup>3</load-on-startup>
  17.     </servlet>


        <init-param>
            <param-name>development</param-name>
            <param-value>true</param-value>
        </init-param>

一般需要新增