复制WebServer项目下: 从WebServer项目复制过来: 然后依次把标红地方需要导包的导包,需要try/catch的try/catch 测试:运行服务端,浏览器输入http://localhost:8080/myweb/index.html (注意是8080端口) 测试功能无误! 注意: