# homework **Repository Path**: null_631_9084/homework ## Basic Information - **Project Name**: homework - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 开发Minicat V4.0,在已有Minicat基础上进⼀步扩展,模拟出webapps部署效果 磁盘上放置⼀个webapps⽬录, webapps中可以有多个项⽬,⽐如demo1,demo2,demo3 #### 目录介绍 1. webapps.rar是放项目的地方 2. resources中增加server.xml ```xml ``` #### appBase="E:/demo/webapps" 可以更改为自己需要的 #### Bootsrap-main方法 1. 先调用init方法初始化解析server.xml, 2. 使用appBase路径去扫描 3. 解析xml 4. 封闭解析结果,使用自定义ClassLoader去实例化Servelt.class 5. 在请求处理线程RequestProcessor使用封装的结果去匹配 #### 请求路径 http://localhost:8080/demo01/lagou http://localhost:8080/demo01/hello http://localhost:8080/demo02/lagou http://localhost:8080/demo02/hello