<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>
org.apache.jasper.servlet.JspServlet
</servlet-class>
<init-param>
<param-name>logVerbosityLevel</param-name>
<param-value>WARNING</param-value>
</init-param>
<init-param>
<param-name>compiler</param-name>
<param-value>jikes</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
Ant可用的编译器
名称 别名 调用的编译器 classic javac1.1, javac1.2 Standard JDK 1.1/1.2 compiler modern javac1.3, javac1.4 Standard JDK 1.3/1.4 compiler jikes The Jikes compiler JVC Microsoft Microsoft command-line compiler from the Microsoft SDK for Java/Visual J++ KJC The kopi compiler GCJ The gcj compiler (included as part of gcc) SJ Symantec Symantec's Java compiler extJavac Runs either the modern or classic compiler in a JVM of its own
由于JSP页面在第一次使用时已经被编译,那么你可能希望在更新新的jsp页面后马上对它进行编译。实际上,这个过程完全可以自动化,因为可以确认的是新的JSP页面在生产服务器和在测试服务器上的运行效果是一样的。
文章来源于领测软件测试网 https://www.ltesting.net/