方法一:源码安装,不过安装过程中会有一些依赖,特别麻烦,我上次在这个问题上一直有报错,浪费掉一两天的时间才解决。一般tomcat的/bin/下都会有这个安装文件。 commons-daemon.jar daemon.sh setclasspath.sh startup.sh tool-wrapper.batĬatalina.bat digest.bat shutdown.bat tomcat-juli.jar tool-wrapper.shĬatalina.sh configtest.bat digest.sh shutdown.sh tomcat-native-1.1.33-src version.batĬatalina-tasks.xml configtest.sh setclasspath.bat startup.bat Arch Version Repository Size tmp/install/apr-1.5.2/build/mkdir.sh include/private bin/sh /tmp/install/apr-1.5.2/libtool -silent -mode=link gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I./include -I/tmp/install/apr-1.5.2/include/arch/unix -I./include/arch/unix -I/tmp/install/apr-1.5.2/include/arch/unix -I/tmp/install/apr-1.5.2/include -I/tmp/install/apr-1.5.2/include/private -I/tmp/install/apr-1.5.2/include/private -no-install -o tools/gen_test_char tools/gen_test_char.lo -lrt -lcrypt -lpthread Custom Servlets used as error pages must ensure that they handle any error dispatch as a GET request, regardless of the actual method.BIO由于每个请求都要创建一个线程来处理,线程开销比较大,不能再高并发的场景,性能也是最低的。 ![]() (2) By default, the response generated by a Servlet does depend on the HTTP method. JSPs used as error pages must must ensure that they handle any error dispatch as a GET request, regardless of the actual method. Notes for other user provided error pages: (1) Unless explicitly coded otherwise, JSPs ignore the HTTP method. Depending on the original request this could lead to unexpected and undesirable results for static error pages including, if the DefaultServlet is configured to permit writes, the replacement or removal of the custom error page. If the error page is a static file, expected behaviour is to serve content of the file as if processing a GET request, regardless of the actual HTTP method. ![]() This means that the request is presented to the error page with the original HTTP method. The error page mechanism of the Java Servlet Specification requires that, when an error occurs and an error page is configured for the error that occurred, the original request and response are forwarded to the error page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |