|
1 | | -# ssssssss-spring-boot-starter |
| 1 | +<p align="center"> |
| 2 | + <img src="https://images.gitee.com/uploads/images/2020/0505/095241_408bc438_297689.png" width="600"> |
| 3 | +</p> |
| 4 | +<p align="center"> |
| 5 | + <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> |
| 6 | + <a href="https://search.maven.org/search?q=g:org.ssssssss"> |
| 7 | + <img alt="maven" src="https://img.shields.io/maven-central/v/org.ssssssss/ssssssss-spring-boot-starter.svg?style=flat-square"> |
| 8 | + </a> |
| 9 | + <a target="_blank" href="https://www.ssssssss.org"><img src="https://img.shields.io/badge/Docs-latest-blue.svg"/></a> |
| 10 | + <a target="_blank" href="https://github.com/javamxd/ssssssss-spring-boot-starter/releases"><img src="https://img.shields.io/github/v/release/javamxd/ssssssss-spring-boot-starter?logo=github"></a> |
| 11 | + <a target="_blank" href='https://gitee.com/jmxd/ssssssss-spring-boot-starter'><img src="https://gitee.com/jmxd/ssssssss-spring-boot-starter/badge/star.svg?theme=white" /></a> |
| 12 | + <a target="_blank" href='https://github.com/javamxd/ssssssss'><img src="https://img.shields.io/github/stars/javamxd/ssssssss-spring-boot-starter.svg?style=social"/></a> |
| 13 | + <a target="_blank" href="LICENSE"><img src="https://img.shields.io/:license-MIT-blue.svg"></a> |
| 14 | + <a target="_blank" href="https://shang.qq.com/wpa/qunwpa?idkey=10faa4cf9743e0aa379a72f2ad12a9e576c81462742143c8f3391b52e8c3ed8d"><img src="https://img.shields.io/badge/Join-QQGroup-blue"></a> |
| 15 | +</p> |
2 | 16 |
|
3 | | -#### 介绍 |
4 | | -{**以下是码云平台说明,您可以替换此简介** |
5 | | -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 |
6 | | -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} |
| 17 | +# 特性 |
| 18 | +- 以XML为基础,自动映射HTTP接口 |
| 19 | +- 支持MySQL、MariaDB、Oracle、DB2、PostgreSQL、SQLServer 等多种数据库 |
| 20 | +- 支持参数自动校验以及自定义参数校验 |
| 21 | +- 支持分页查询以及自定义分页查询 |
| 22 | +- 支持XML中调用java方法 |
| 23 | +- 支持执行多条sql语句 |
| 24 | +- 自动热更新 |
| 25 | +- ~~支持单表自动映射CRUD~~ |
| 26 | +- ~~支持缓存~~ |
| 27 | +- ~~支持多数据源~~ |
| 28 | +- ~~支持主键自动生成,可自定义配置主键生成策略(正在开发中)~~ |
| 29 | +- ~~支持调用存储过程~~ |
7 | 30 |
|
8 | | -#### 软件架构 |
9 | | -软件架构说明 |
| 31 | +# 快速开始 |
10 | 32 |
|
| 33 | +## maven引入 |
| 34 | +```xml |
| 35 | +<!-- 以spring-boot-starter的方式引用 --> |
| 36 | +<dependency> |
| 37 | + <groupId>org.ssssssss</groupId> |
| 38 | + <artifactId>ssssssss-spring-boot-starter</artifactId> |
| 39 | + <version>0.0.1</version> |
| 40 | +</dependency> |
| 41 | +``` |
| 42 | +## 修改application.properties |
11 | 43 |
|
12 | | -#### 安装教程 |
| 44 | +```properties |
| 45 | +server.port=9999 |
| 46 | +#配置ssssssss的xml所在位置 |
| 47 | +ssssssss.xml-locations: classpath*:ssssssss/*.xml |
| 48 | +#以下配置需跟实际情况修改 |
| 49 | +spring.datasource.url=jdbc:mysql://localhost/test |
| 50 | +spring.datasource.username=root |
| 51 | +spring.datasource.password=123456789 |
| 52 | +spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
| 53 | +``` |
13 | 54 |
|
14 | | -1. xxxx |
15 | | -2. xxxx |
16 | | -3. xxxx |
| 55 | +## 创建XML |
17 | 56 |
|
18 | | -#### 使用说明 |
| 57 | +在`src/main/resources/ssssssss/`下建立`user.xml`文件 |
| 58 | +```xml |
| 59 | +<?xml version="1.0" encoding="utf-8" ?> |
| 60 | +<!DOCTYPE ssssssss PUBLIC "-//ssssssss.org//DTD ssssssss 0.1//EN" "http://ssssssss.org/dtd/0.0.x/ssssssss.dtd"> |
| 61 | +<ssssssss request-mapping="/user"> |
| 62 | + <!-- 访问地址/user/list,访问方法get,并开启分页 --> |
| 63 | + <select-list request-mapping="/list" request-method="get" page="true"> |
| 64 | + select username,password from sys_user |
| 65 | + </select-list> |
| 66 | +</ssssssss> |
| 67 | +``` |
19 | 68 |
|
20 | | -1. xxxx |
21 | | -2. xxxx |
22 | | -3. xxxx |
| 69 | +## 测试 |
| 70 | +访问`http://localhost:9999/user/list` |
23 | 71 |
|
24 | | -#### 参与贡献 |
| 72 | +结果如下: |
| 73 | +```json |
| 74 | +{ |
| 75 | + "code": 1, |
| 76 | + "message": "success", |
| 77 | + "data": { |
| 78 | + "total": 2, |
| 79 | + "list": [{ |
| 80 | + "password": "123456", |
| 81 | + "username": "admin" |
| 82 | + }, { |
| 83 | + "password": "1234567", |
| 84 | + "username": "1234567" |
| 85 | + }] |
| 86 | + }, |
| 87 | + "timestamp": 1588586539249 |
| 88 | +} |
| 89 | +``` |
25 | 90 |
|
26 | | -1. Fork 本仓库 |
27 | | -2. 新建 Feat_xxx 分支 |
28 | | -3. 提交代码 |
29 | | -4. 新建 Pull Request |
30 | | - |
31 | | - |
32 | | -#### 码云特技 |
33 | | - |
34 | | -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md |
35 | | -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) |
36 | | -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 |
37 | | -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 |
38 | | -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) |
39 | | -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) |
| 91 | +# 其他开源项目 |
| 92 | +- [ssssssss](https://gitee.com/jmxd/ssssssss) |
| 93 | +- [spider-flow,新一代爬虫平台,以图形化方式定义爬虫流程,不写代码即可完成爬虫](https://gitee.com/jmxd/spider-flow) |
0 commit comments