Skip to content

Latest commit

 

History

History
28 lines (27 loc) · 581 Bytes

README.md

File metadata and controls

28 lines (27 loc) · 581 Bytes

JerryCat

简易版Tomcat

快速入手

  1. 引入JerryCat依赖
<dependency>
    <groupId>com.ivan</groupId>
    <artifactId>jerryCat</artifactId>
    <version>{version}</version>
</dependency>
  1. 在resources中维护配置文件server.xml

文件内容如下

<server>
   <port>{服务启动端口号}</port>
   <servletPackage>{servlet包路径}</servletPackage>
</server>
  1. 创建启动类,实例代码如下
public class Demo {
    public static void main(String[] args) {
        ApplicationStarter.run(Demo.class);
    }
}