# lesswork
**Repository Path**: menjoe-z/lesswork
## Basic Information
- **Project Name**: lesswork
- **Description**: 一个轻量级的restful框架
- **Primary Language**: Java
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2018-07-26
- **Last Updated**: 2020-12-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
一个轻量级的restful框架
## 特征:
1. 内嵌jetty容器
2. 薄封装
## 环境:
maven3.9+
jdk1.8+
## 快速开始:
### pom.xml
```
com.lesswork.framework
lesswork
1.0.0
import
pom
com.lesswork.framework
context
```
### less和启动
```
import cn.lesswork.context.anno.Less;
import cn.lesswork.context.anno.Work;
import cn.lesswork.context.boot.LessWorkApp;
@Less
public class SampleLess {
@Work("/hello")
public String hello() {
return "Hello less!";
}
/**
* 启动器,无需添加额外配置,访问端口默认8080.
* @param args
*/
public static void main(String[] args) {
new LessWorkApp().go(args);
}
}
```