Java--Tomcat如何取消jsp缓存

    <servlet>

        <servlet-name>jsp</servlet-name>

        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>

        <init-param>

            <param-name>fork</param-name>

            <param-value>false</param-value>

        </init-param>

        <init-param>

            <param-name>xpoweredBy</param-name>

            <param-value>false</param-value>

        </init-param>

        <init-param>

            <param-name>development</param-name>

            <param-value>true</param-value>                 //这里将development参数设置为true就可以关闭jsp缓存

        </init-param>

        <load-on-startup>3</load-on-startup>

    </servlet>

 

posted @ 2017-01-20 09:46  11楼的日记  阅读(2253)  评论(0编辑  收藏  举报