package servlet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class MyFirstServlet extends HttpServlet {
private static final Logger LOGGER = LoggerFactory.getLogger(MyFirstServlet.class);
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
LOGGER.info("ssssskskskskksksksksskks");
response.getWriter().append("my frist servlet");
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
LOGGER.info("22222222222");
doGet(request, response);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
jetty反相代理配置
共67个文件
xml:34个
jar:20个
class:4个
4星 · 超过85%的资源 需积分: 9 18 下载量 157 浏览量
2017-10-08
17:47:38
上传
评论
收藏 12.02MB ZIP 举报
温馨提示
网上看到jetty-proxy有反相代理功能,根据很多网页配置并未成功,感觉是jetty版本更新比较快,文档跟不上,所以把我调试通过的上传一下。jetty版本9.4.6
资源推荐
资源详情
资源评论
收起资源包目录
jettytest.zip (67个子文件)
jettytest
pom.xml 2KB
target
hyg-jetty-test-1.0-SNAPSHOT
META-INF
MANIFEST.MF 89B
WEB-INF
web.xml 2KB
classes
log4j2.xml 536B
servlet
HygTestServlet.class 940B
MyFirstServlet.class 1KB
lib
jetty-util-9.4.6.v20170531.jar 447KB
jetty-http-9.4.6.v20170531.jar 160KB
log4j-core-2.6.2.jar 1.14MB
aopalliance-1.0.jar 4KB
jetty-io-9.4.6.v20170531.jar 126KB
spring-context-4.2.2.RELEASE.jar 1.04MB
jetty-client-9.4.6.v20170531.jar 262KB
slf4j-api-1.7.21.jar 40KB
log4j-web-2.6.2.jar 24KB
javax.servlet-api-4.0.0.jar 100KB
log4j-slf4j-impl-2.6.2.jar 22KB
spring-expression-4.2.2.RELEASE.jar 256KB
spring-web-4.2.2.RELEASE.jar 751KB
spring-aop-4.2.2.RELEASE.jar 358KB
spring-core-4.2.2.RELEASE.jar 1.02MB
commons-logging-1.2.jar 60KB
spring-beans-4.2.2.RELEASE.jar 713KB
log4j-api-2.6.2.jar 194KB
jetty-test-1.0-SNAPSHOT.jar 2KB
jetty-proxy-9.4.6.v20170531.jar 85KB
index.jsp 52B
hyg-jetty-test-1.0-SNAPSHOT.war 5.99MB
classes
log4j2.xml 536B
servlet
HygTestServlet.class 940B
MyFirstServlet.class 1KB
maven-archiver
pom.properties 118B
generated-sources
annotations
jettytest.iml 4KB
.DS_Store 6KB
src
test
java
org
eclipse
jetty
main
webapp
WEB-INF
web.xml 2KB
index.jsp 52B
resources
log4j2.xml 536B
java
servlet
HygTestServlet.java 538B
MyFirstServlet.java 860B
.idea
misc.xml 566B
thriftCompiler.xml 140B
modules.xml 258B
compiler.xml 630B
workspace.xml 95KB
libraries
Maven__aopalliance_aopalliance_1_0.xml 502B
Maven__org_eclipse_jetty_jetty_util_9_4_6_v20170531.xml 603B
Maven__junit_junit_4_12.xml 443B
Maven__org_springframework_spring_beans_4_2_2_RELEASE.xml 611B
Maven__javax_servlet_javax_servlet_api_4_0_0.xml 566B
Maven__org_apache_logging_log4j_log4j_web_2_6_2.xml 554B
Maven__org_apache_logging_log4j_log4j_slf4j_impl_2_6_2.xml 603B
Maven__org_springframework_spring_aop_4_2_2_RELEASE.xml 597B
Maven__org_hamcrest_hamcrest_core_1_3.xml 520B
Maven__commons_logging_commons_logging_1_2.xml 546B
Maven__org_apache_logging_log4j_log4j_api_2_6_2.xml 554B
Maven__org_slf4j_slf4j_api_1_7_21.xml 501B
Maven__org_springframework_spring_context_4_2_2_RELEASE.xml 625B
Maven__org_springframework_spring_web_4_2_2_RELEASE.xml 597B
Maven__org_eclipse_jetty_jetty_http_9_4_6_v20170531.xml 603B
Maven__org_eclipse_jetty_jetty_io_9_4_6_v20170531.xml 589B
Maven__org_eclipse_jetty_jetty_client_9_4_6_v20170531.xml 617B
Maven__org_apache_logging_log4j_log4j_core_2_6_2.xml 561B
Maven__org_springframework_spring_core_4_2_2_RELEASE.xml 604B
Maven__org_eclipse_jetty_jetty_proxy_9_4_6_v20170531.xml 610B
Maven__org_springframework_spring_expression_4_2_2_RELEASE.xml 646B
artifacts
jettytest_war_exploded.xml 3KB
jettytest_war.xml 304B
inspectionProfiles
共 67 条
- 1
资源评论
- tarbitrary2018-03-07先研究下,,,,,
hhhtttggg
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功