Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
503 views
in Technique[技术] by (71.8m points)

《深入剖析Tomcat》第一个案例,运行不成功

这是从https://brainysoftware.com下载的源代码

HttpServer

image.png

Request

image.png

Response

image

这是我的目录结构

image.png

我的问题是:运行起来之后输入http://localhost:8080/index.html或者http://127.0.0.1:8080/index.html 页面上展示不出来html的内容

走Response类的else代码块页面可以展示File Not Found

html 代码

image.png

页面输出

image.png

是作者写错了呢,还是我自己copy错了,有没有同样遇到这个问题的同学们,欢迎留言


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)

自己顶一下,期待大佬们的回答


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...