1 Star 0 Fork 0

vayneXiao / springboot-multiple-data-sources-swagger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

博客园文章:www.cnblogs.com/hsbt2333/p/9347249.html

项目gitee地址:https://gitee.com/wbsxch/ssm.git

相关文章:https://www.cnblogs.com/niejunlei/p/5977895.html

测试方法

使用idea的Tools-->HTTP Client-->Test RestFul web Service

测试数据如下


### 添加学生
POST http://localhost:8080/ssm/student/add
Content-Type: application/json

{"name": "韩立","age": "25","classname": "1班"}

### 添加学生
POST http://localhost:8080/ssm/student/add
Content-Type: application/json

{"name": "萧炎","age": "24","classname": "1班"}

### 添加老师
POST http://localhost:8080/ssm/teacher/add
Content-Type: application/json

{"name": "萧薰儿","age": "985","subject": "历史"}

### 添加老师
POST http://localhost:8080/ssm/teacher/add
Content-Type: application/json

{"name": "银月","age": "211","subject": "政治"}

### 查询老师
GET http://localhost:8080/ssm/teacher/list
Accept: application/json

### 查询学生
GET http://localhost:8080/ssm/student/list
Accept: application/json
###
使用Postman
使用 swagger

http://localhost:8080/ssm/swagger-ui.html

空文件

简介

springboot-multiple-data-sources-swagger 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/vaynexiao/springboot-multiple-data-sources-swagger.git
git@gitee.com:vaynexiao/springboot-multiple-data-sources-swagger.git
vaynexiao
springboot-multiple-data-sources-swagger
springboot-multiple-data-sources-swagger
master

搜索帮助