Giter Club home page Giter Club logo

jerrydog's Introduction

jerrydog

从 0 搭建自己的简易版 Tomcat

静态资源服务器

  • 主要思路: 使用 Java 网络编程 API,监听一个端口。当客户端连接时获取客户端的 socket,从该 socketinputstream 中读取 HTTP 相应内容并解析,根据 URI 确定服务器静态文件位置,读取文件写入 socketoutputstream 中。
  • 需要进行的配置:
    1. clone 下本仓库后, 配置环境变量 JERRYDOG_HOME 为仓库根目录
  • 其他:
    1. 静态资源文件存放在 webapps 目录下
    2. 服务器监听端口为 9704

jerrydog's People

Contributors

c-rainstorm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.