-
Notifications
You must be signed in to change notification settings - Fork 0
adpanru/easy-tomcat
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
1、手写注解,里面定义url的值 2、手写servlet, 实现两个方法doGet和doPost加上自定义注解,赋予其url地址 3、整个项目启动的时候,扫描含有注解的文件,并放到map中,key为url,value为全类名 4、发送请求,使用socket实现,发送url和参数 5、拿到socket返回的字符串,处理拿到url和参数 6、通过url找到map中对应的key并利用反射拿到selvet中的方法 simple-tomcat1为单线程的,只能处理一次请求 simple-tomcat2加入了线程池,可以一直处理请求
About
仿写tomcat,实现基本功能
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published