Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deng-hb/forest
这是一个新物种包内置 socket通讯、HTTP解析、类似Spring Boot的功能、简易JSON解析器、关系型数据库ORM等,使其能用最简洁的代码实现RESTful风格提供服务(暂仅供学习交流)
https://github.com/deng-hb/forest
hibernate mybatis restful spring-boot spring-mvc
Last synced: 3 days ago
JSON representation
这是一个新物种包内置 socket通讯、HTTP解析、类似Spring Boot的功能、简易JSON解析器、关系型数据库ORM等,使其能用最简洁的代码实现RESTful风格提供服务(暂仅供学习交流)
- Host: GitHub
- URL: https://github.com/deng-hb/forest
- Owner: deng-hb
- Created: 2018-02-18T14:18:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-21T16:52:05.000Z (about 6 years ago)
- Last Synced: 2024-12-08T04:42:34.798Z (about 2 months ago)
- Topics: hibernate, mybatis, restful, spring-boot, spring-mvc
- Language: Java
- Homepage:
- Size: 123 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Forest
![forest](logo.png)
Simple RESTFul Server
这是一个新物种包内置 socket通讯、HTTP解析、类似Spring Boot的功能、简易JSON解析器、关系型数据库ORM等,使其能用最简洁的代码实现RESTful风格提供服务(暂仅供学习交流)### Example
Create Maven "maven-archetype-quickstart" Project
Add
```xml
com.denghb
forest
1.0.1```
Create `App.java`
```java
import com.denghb.forest.Application;
import com.denghb.forest.annotation.GET;
import com.denghb.forest.annotation.RESTful;@RESTful
public class App {public static void main(String[] args) {
Application.run(App.class, args);
}@GET("/")
String home() {
return "Hello World!";
}
}
```Main Run `App.java` Open Browser [http://localhost:8888](http://localhost:8888)
👏意见反馈 [issues](https://github.com/deng-hb/forest/issues)
QQ群:701075954