json服务器
基于Java的快速后端REST服务器,用于原型制作和模拟
生成并运行
mvn compile exec:java
然后使用浏览器访问
模型模拟
基于db.json文件:
"comments":[
{"id":1,"name":"comment1"},
{"id":2,"name":"comment2"}
],
"blogs":[
{"id":1,"name":"blog1","body":"blog1 content","published_at":"2015-06-01","views":7},
{"id":2,"name":"blog2","body":"blog2 content..","views":3}
]
这是两个模型:注释和博客,代码将为这些模型生成所有路由(根路径为serv
2022-01-01 23:08:41
11KB
Java
1