# web-launcher
**Repository Path**: chinesetiger/web-launcher
## Basic Information
- **Project Name**: web-launcher
- **Description**: 封装Jetty的简单Web容器,用于开发调试
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 2
- **Forks**: 0
- **Created**: 2015-12-20
- **Last Updated**: 2022-02-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#WebLauncher
在WEB项目开发阶段, 通常需要Tomcat或者别的Jetty容器启动项目进行测试.
WebLauncher是基于Jetty的WEB容器, 以嵌入式运行, 用于开发测试的东东.
直接启动项目开发, 无需下载其他Tomcat或者Jetty包.
直接引入POM文件即可.
为了简化, 将本功能封装作为独立模块, 方便以后自己开发引用.(受YY公司Leopard框架启发)
其他类似的方式有如: Maven-Jetty-Plugin 的形式运行.
##Maven
```xml
cn.duapi.weblauncher
web-launcher
1.0
test
```
添加maven依赖库地址
```xml
qwei-maven-repo
https://raw.githubusercontent.com/LoginQin/maven-repo/master
```
国内使用oschina
```xml
qinwei-maven-release-repository
http://git.oschina.net/chinesetiger/maven-repo/raw/release/
```
##运行项目
在/src/test/java下新建一个文件JettyTest
```java
public class JettyTest{
public static void main(String[] args) {
JettyServer.startJetty(8080);
}
}
```
##关于web.xml项目结构
```code
src/main/webapp
|- index.jsp
|- WEB-INF
|- web.xml
|- xxxx-servlet.xml
```