Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mihuajun/rocket-api-gitee
https://github.com/mihuajun/rocket-api-gitee
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mihuajun/rocket-api-gitee
- Owner: mihuajun
- License: apache-2.0
- Created: 2021-01-04T01:00:21.000Z (almost 4 years ago)
- Default Branch: add-license-1
- Last Pushed: 2022-06-29T18:28:04.000Z (over 2 years ago)
- Last Synced: 2024-01-19T18:24:21.348Z (11 months ago)
- Language: Java
- Size: 3.09 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rocket API
### 摘要
1. 用于快速开发API接口。不再定义`Controller`,`Service`,`Dao`,`Mybatis`,`xml`,`Entity`,`VO`等对象.
2. 可视化界面,将入参自动封装到可执行的脚本上,支持所有关系性数据库SQL执行语句,非关系型`MONGODB`查询语句.
3. 完全基于springboot2.x,无侵入性,新老项目都能快速集成
4. 无需编写一行代码即可完成大部分的需求开发,使用难度级别(测试 or 运维)也可参与开发
5. 动态编译,无需重启,即时生效![输入图片说明](https://images.gitee.com/uploads/images/2020/0831/100733_5a880e41_5139840.png "屏幕截图.png")
### 快速开始
#1. 添加依赖```$xml
com.github.alenfive
rocket-api-boot-starter
0.0.1-SNAPSHOT```
版本查看: https://gitee.com/mihuajun/rocket-api-doc/wikis/pages?sort_id=2667224&doc_id=859283
#2. 配置数据源,继承`com.github.alenfive.rocketapi.datasource.DataSourceManager` 注入数据源
```java
@Component
public class DefaultDataSourceManager extends DataSourceManager {@Autowired
private JdbcTemplate jdbcTemplate;@PostConstruct
public void init() {Map dialects = new HashMap<>();
//通过MysqlDataSource的第二个参数为`true`来表示生成的API信息所存储的库,有且仅有一个为true
dialects.put("mysql",new MysqlDataSource(jdbcTemplate,true));
super.setDialectMap(dialects);
}
}
```#3. 关系型数据库建表,非关系型不用
最新建表脚本查看: https://gitee.com/mihuajun/rocket-api-doc/wikis/pages?sort_id=2670007&doc_id=859283>启动项目,访问地址: http://localhost:8080/interface-ui
>在线演示,访问地址:http://39.98.181.90:8081/interface-ui
>文档地址1: https://github.com/alenfive/rocket-api/wiki
>文档地址2: https://gitee.com/mihuajun/rocket-api-doc/wikis/pages