-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
84 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,93 @@ | ||
# ssssssss | ||
<p align="center"> | ||
<img src="https://images.gitee.com/uploads/images/2020/0505/095241_408bc438_297689.png" width="600"> | ||
</p> | ||
<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"> | ||
</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/spider-flow/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="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> | ||
|
||
#### 介绍 | ||
{**以下是码云平台说明,您可以替换此简介** | ||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 | ||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} | ||
# 特性 | ||
- 以XML为基础,自动映射HTTP接口 | ||
- 支持MySQL、MariaDB、Oracle、DB2、PostgreSQL、SQLServer 等多种数据库 | ||
- 支持参数自动校验以及自定义参数校验 | ||
- 支持分页查询以及自定义分页查询 | ||
- 支持XML中调用java方法 | ||
- 支持执行多条sql语句 | ||
- 自动热更新 | ||
- ~~支持单表自动映射CRUD~~ | ||
- ~~支持缓存~~ | ||
- ~~支持多数据源~~ | ||
- ~~支持主键自动生成,可自定义配置主键生成策略(正在开发中)~~ | ||
- ~~支持调用存储过程~~ | ||
|
||
#### 软件架构 | ||
软件架构说明 | ||
# 快速开始 | ||
|
||
## maven引入 | ||
```xml | ||
<!-- 以spring-boot-starter的方式引用 --> | ||
<dependency> | ||
<groupId>org.ssssssss</groupId> | ||
<artifactId>ssssssss-spring-boot-starter</artifactId> | ||
<version>0.0.1</version> | ||
</dependency> | ||
``` | ||
## 修改application.properties | ||
|
||
#### 安装教程 | ||
```properties | ||
server.port=9999 | ||
#配置ssssssss的xml所在位置 | ||
ssssssss.xml-locations: classpath*:ssssssss/*.xml | ||
#以下配置需跟实际情况修改 | ||
spring.datasource.url=jdbc:mysql://localhost/test | ||
spring.datasource.username=root | ||
spring.datasource.password=123456789 | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
``` | ||
|
||
1. xxxx | ||
2. xxxx | ||
3. xxxx | ||
## 创建XML | ||
|
||
#### 使用说明 | ||
在`src/main/resources/ssssssss/`下建立`user.xml`文件 | ||
```xml | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!DOCTYPE ssssssss PUBLIC "-//ssssssss.org//DTD ssssssss 0.1//EN" "http://ssssssss.org/dtd/0.0.x/ssssssss.dtd"> | ||
<ssssssss request-mapping="/user"> | ||
<!-- 访问地址/user/list,访问方法get,并开启分页 --> | ||
<select-list request-mapping="/list" request-method="get" page="true"> | ||
select username,password from sys_user | ||
</select-list> | ||
</ssssssss> | ||
``` | ||
|
||
1. xxxx | ||
2. xxxx | ||
3. xxxx | ||
## 测试 | ||
访问`http://localhost:9999/user/list` | ||
|
||
#### 参与贡献 | ||
结果如下: | ||
```json | ||
{ | ||
"code": 1, | ||
"message": "success", | ||
"data": { | ||
"total": 2, | ||
"list": [{ | ||
"password": "123456", | ||
"username": "admin" | ||
}, { | ||
"password": "1234567", | ||
"username": "1234567" | ||
}] | ||
}, | ||
"timestamp": 1588586539249 | ||
} | ||
``` | ||
|
||
1. Fork 本仓库 | ||
2. 新建 Feat_xxx 分支 | ||
3. 提交代码 | ||
4. 新建 Pull Request | ||
|
||
|
||
#### 码云特技 | ||
|
||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md | ||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) | ||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 | ||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 | ||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) | ||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) | ||
# 其他开源项目 | ||
- [ssssssss-spring-boot-starter](https://gitee.com/jmxd/ssssssss-spring-boot-starter) | ||
- [spider-flow,新一代爬虫平台,以图形化方式定义爬虫流程,不写代码即可完成爬虫](https://gitee.com/jmxd/spider-flow) |