magic-api 是一個介面快速開發框架,通過Web頁面編寫指令碼以及配置,自動對映為HTTP介面,無需定義Controller、Service、Dao、Mapper、XML、VO等Java物件
<!-- 以spring-boot-starter的方式引用 --> <dependency> <groupId>org.ssssssss</groupId> <artifactId>magic-api-spring-boot-starter</artifactId> <version>0.2.0</version> </dependency
server.port=9999 #配置web頁面入口 magic.web=/magic/web #以下配置需跟實際情況修改 spring.datasource.url=jdbc:mysql://localhost/test spring.datasource.username=root spring.datasource.password=123456789 spring.datasource.driver-class-name=com.mysql.jdbc.Drive
執行原始碼中的db/magic-api.sql建表語句
訪問http://localhost:9999/magic/web
進行操作
Github倉庫地址: https://github.com/ssssssss-team/magic-api
Gitee倉庫地址: https://gitee.com/ssssssss-team/magic-api
[admin
]