首页>代码>java编写一个迷你版的Tomcat服务器,适合初学者>/MiniTomcat/src/com/tomlin/tomcat/config/ServletMappingConfig.java
package com.tomlin.tomcat.config;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: tomlin
 * @Description: 配置参数
 * @ClassName: ServletMappingConfig
 * @Date: 2018/10/1 12:40
 * @Version: 1.0
 */
public class ServletMappingConfig {
    //封装配置参数
    public static List<ServletMapping> servletMappings = new ArrayList<>();

    /*类加载就加载 只会加载一次  生命周期-》开始到结束*/
    static {
        servletMappings.add(new ServletMapping("FindGirlServlet", "/find", "com.tomlin.tomcat.servlet.FindGirlServlet"));
        servletMappings.add(new ServletMapping("HelloWorldServlet", "/hello", "com.tomlin.tomcat.servlet.HelloWorldServlet"));
    }
}
最近下载更多
xun9er  LV1 2023年3月18日
lironggang  LV38 2021年6月16日
1316463958  LV8 2019年10月14日
ly3812  LV17 2019年10月2日
陆地火箭  LV3 2019年7月10日
ljkfdsjh  LV2 2019年4月10日
二两小面加个蛋  LV10 2019年3月6日
pdd  LV2 2019年2月14日
myzczx  LV25 2019年2月9日
xinjames  LV27 2019年2月5日
最近浏览更多
lee123321  LV22 2023年12月19日
annazhang  LV29 2023年10月3日
xun9er  LV1 2023年3月18日
al-aaalll  LV3 2022年12月13日
xsxtxbb  LV8 2022年10月10日
tomcat_test  LV2 2022年7月6日
isfrand  LV4 2022年4月18日
3188681084  LV1 2022年3月24日
李润石  LV2 2022年1月18日
lironggang  LV38 2021年6月16日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友