|
@@ -4,12 +4,12 @@
|
|
|
<p align="center">
|
|
|
<a target="_blank" href="https://www.oracle.com/technetwork/java/javase/downloads/index.html"><img src="https://img.shields.io/badge/JDK-1.8+-green.svg" /></a>
|
|
|
<a href="https://search.maven.org/search?q=g:org.ssssssss">
|
|
|
- <img alt="maven" src="https://img.shields.io/maven-central/v/org.ssssssss/ssssssss-core.svg?style=flat-square">
|
|
|
+ <img alt="maven" src="https://img.shields.io/maven-central/v/org.ssssssss/magic-api.svg?style=flat-square">
|
|
|
</a>
|
|
|
<a target="_blank" href="https://www.ssssssss.org"><img src="https://img.shields.io/badge/Docs-latest-blue.svg"/></a>
|
|
|
- <a target="_blank" href="https://github.com/javamxd/ssssssss/releases"><img src="https://img.shields.io/github/v/release/javamxd/ssssssss?logo=github"></a>
|
|
|
- <a target="_blank" href='https://gitee.com/jmxd/ssssssss'><img src="https://gitee.com/jmxd/ssssssss/badge/star.svg?theme=white" /></a>
|
|
|
- <a target="_blank" href='https://github.com/javamxd/ssssssss'><img src="https://img.shields.io/github/stars/javamxd/ssssssss.svg?style=social"/></a>
|
|
|
+ <a target="_blank" href="https://github.com/ssssssss-team/magic-api/releases"><img src="https://img.shields.io/github/v/release/ssssssss-team/magic-api?logo=github"></a>
|
|
|
+ <a target="_blank" href='https://gitee.com/ssssssss-team/magic-api'><img src="https://gitee.com/ssssssss-team/magic-api/badge/star.svg?theme=white" /></a>
|
|
|
+ <a target="_blank" href='https://github.com/ssssssss-team/magic-api'><img src="https://img.shields.io/github/stars/ssssssss-team/magic-api.svg?style=social"/></a>
|
|
|
<a target="_blank" href="LICENSE"><img src="https://img.shields.io/:license-MIT-blue.svg"></a>
|
|
|
<a target="_blank" href="https://shang.qq.com/wpa/qunwpa?idkey=10faa4cf9743e0aa379a72f2ad12a9e576c81462742143c8f3391b52e8c3ed8d"><img src="https://img.shields.io/badge/Join-QQGroup-blue"></a>
|
|
|
</p>
|
|
@@ -37,16 +37,16 @@
|
|
|
<!-- 以spring-boot-starter的方式引用 -->
|
|
|
<dependency>
|
|
|
<groupId>org.ssssssss</groupId>
|
|
|
- <artifactId>ssssssss-spring-boot-starter</artifactId>
|
|
|
- <version>0.1.0</version>
|
|
|
+ <artifactId>magic-api-spring-boot-starter</artifactId>
|
|
|
+ <version>0.1.1</version>
|
|
|
</dependency>
|
|
|
```
|
|
|
## 修改application.properties
|
|
|
|
|
|
```properties
|
|
|
server.port=9999
|
|
|
-#配置ssssssss的xml所在位置
|
|
|
-ssssssss.xml-locations: classpath*:ssssssss/**/*.xml
|
|
|
+#配置magic-api的xml所在位置
|
|
|
+magic-api.xml-locations: classpath*:magic-api/**/*.xml
|
|
|
#以下配置需跟实际情况修改
|
|
|
spring.datasource.url=jdbc:mysql://localhost/test
|
|
|
spring.datasource.username=root
|
|
@@ -56,18 +56,18 @@ spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
|
|
|
## 创建XML
|
|
|
|
|
|
-在`src/main/resources/ssssssss/`下建立`user.xml`文件
|
|
|
+在`src/main/resources/magic-api/`下建立`user.xml`文件
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
-<ssssssss request-mapping="/user"
|
|
|
+<magic request-mapping="/user"
|
|
|
xmlns="http://ssssssss.org/schema"
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
- xsi:schemaLocation="http://ssssssss.org/schema http://ssssssss.org/schema/ssssssss-0.1.xsd">
|
|
|
+ xsi:schemaLocation="http://ssssssss.org/schema http://ssssssss.org/schema/magic-0.1.xsd">
|
|
|
<!-- 访问地址/user/list,访问方法get,并开启分页 -->
|
|
|
<select-list request-mapping="/list" request-method="get" page="true">
|
|
|
select username,password from sys_user
|
|
|
</select-list>
|
|
|
-</ssssssss>
|
|
|
+</magic>
|
|
|
```
|
|
|
|
|
|
## 测试
|
|
@@ -93,5 +93,5 @@ spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
```
|
|
|
|
|
|
# 其它开源项目
|
|
|
-- [ssssssss-spring-boot-starter](https://gitee.com/jmxd/ssssssss-spring-boot-starter)
|
|
|
-- [spider-flow,新一代爬虫平台,以图形化方式定义爬虫流程,不写代码即可完成爬虫](https://gitee.com/jmxd/spider-flow)
|
|
|
+- [magic-api-spring-boot-starter](https://gitee.com/ssssssss-team/magic-api-spring-boot-starter)
|
|
|
+- [spider-flow,新一代爬虫平台,以图形化方式定义爬虫流程,不写代码即可完成爬虫](https://gitee.com/ssssssss-team/spider-flow)
|