Coder Social home page Coder Social logo

papalian / magic-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ssssssss-team/magic-api

0.0 0.0 0.0 1.96 MB

magic-api 是一个接口快速开发框架,通过Web页面编写脚本以及配置,自动映射为HTTP接口,无需定义Controller、Service、Dao、Mapper、XML、VO等Java对象

Home Page: http://ssssssss.org

License: MIT License

Java 100.00%

magic-api's Introduction

maven

特性 | 快速开始 | 文档/演示 | 更新日志 | 项目截图 | 其它开源

特性

  • 支持MySQL、MariaDB、Oracle、DB2、PostgreSQL、SQLServer 等多种数据库
  • 支持非关系型数据库Redis、Mongodb
  • 支持分页查询以及自定义分页查询
  • 支持多数据源配置,支持运行时动态添加数据源
  • 支持SQL缓存,以及自定义SQL缓存
  • 支持自定义JSON结果、自定义分页结果
  • 支持对接口权限配置、拦截器等功能
  • 支持运行时动态修改数据源
  • 支持Swagger接口文档生成
  • 基于magic-script脚本引擎,动态编译,无需重启,实时发布
  • 支持数据库事务、SQL支持拼接,占位符,判断等语法
  • 支持文件上传、下载、输出图片
  • 支持脚本历史版本对比与恢复
  • 支持脚本代码自动提示、错误提示
  • 支持导入Spring中的Bean、Java中的类
  • 支持在线调试脚本引擎
  • 支持自定义工具类、自定义模块包、自定义类型扩展

快速开始

maven引入

<!-- 以spring-boot-starter的方式引用 -->
<dependency>
	<groupId>org.ssssssss</groupId>
	<artifactId>magic-api-spring-boot-starter</artifactId>
    <version>0.4.0</version>
</dependency>

修改application.properties

server.port=9999
#配置web页面入口
magic-api.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.Driver

执行建表语句

执行本仓库下db/magic-api.sql建表语句

在线编辑

访问http://localhost:9999/magic/web进行操作

文档/演示

项目截图

整体截图

整体截图

切换主题

切换皮肤

代码提示

代码提示

DEBUG

DEBUG

其它开源项目

magic-api's People

Contributors

dependabot[bot] avatar javamxd avatar lailailai1203 avatar lvjinze avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.