Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
村雨遥
java-learning-demos
比较版本
e07291cd10cc7d0bf032eb4f48f795c7f2b6b2df...80ac7b1fcf2b6f404c047f5d6ad2736ad7aad701
J
java-learning-demos
项目概览
村雨遥
/
java-learning-demos
上一次同步 1 年多
通知
84
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
java-learning-demos
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
80ac7b1fcf2b6f404c047f5d6ad2736ad7aad701
选择Git版本
...
目标分支
e07291cd10cc7d0bf032eb4f48f795c7f2b6b2df
选择Git版本
比较
Commits (5)
https://gitcode.net/github_39655029/java-learning-demos/-/commit/0928874b38d0dc9abb84e3d306e9d73b28a88bfc
🎉 update springboot-swagger-demo 注解
2022-01-06T08:54:53+08:00
cunyu1943
747731461@qq.com
https://gitcode.net/github_39655029/java-learning-demos/-/commit/4fb8fd3d91f5cd63991ce7f325d909740d86c4d5
🎉 update readme.md
2022-01-06T09:27:54+08:00
cunyu1943
747731461@qq.com
https://gitcode.net/github_39655029/java-learning-demos/-/commit/bba655d06cc99c590b3ebb08b756e75aa2eb729f
🎉 rename springboot-swagger-demo -> springboot-swagger2-demo
2022-01-06T10:56:58+08:00
cunyu1943
747731461@qq.com
https://gitcode.net/github_39655029/java-learning-demos/-/commit/f45beece0286978dcafc0ecc6cd2b5b539ae3f40
🎉 update springboot-swagger2-demo
2022-01-06T11:27:20+08:00
cunyu1943
747731461@qq.com
https://gitcode.net/github_39655029/java-learning-demos/-/commit/80ac7b1fcf2b6f404c047f5d6ad2736ad7aad701
🎉 update readme
2022-01-06T11:29:47+08:00
cunyu1943
747731461@qq.com
隐藏空白更改
内联
并排
Showing
7 changed file
with
5 addition
and
8 deletion
+5
-8
README.md
README.md
+3
-0
springboot-swagger2-demo/pom.xml
springboot-swagger2-demo/pom.xml
+0
-7
springboot-swagger2-demo/src/main/java/com/cunyu/springbootswaggerdemo/SpringbootSwaggerDemoApplication.java
...ringbootswaggerdemo/SpringbootSwaggerDemoApplication.java
+0
-0
springboot-swagger2-demo/src/main/java/com/cunyu/springbootswaggerdemo/config/Swagger2Configuration.java
...u/springbootswaggerdemo/config/Swagger2Configuration.java
+0
-0
springboot-swagger2-demo/src/main/java/com/cunyu/springbootswaggerdemo/controller/SwaggerDemoController.java
...ringbootswaggerdemo/controller/SwaggerDemoController.java
+2
-1
springboot-swagger2-demo/src/main/resources/application.yml
springboot-swagger2-demo/src/main/resources/application.yml
+0
-0
springboot-swagger2-demo/src/test/java/com/cunyu/springbootswaggerdemo/SpringbootSwaggerDemoApplicationTests.java
...ootswaggerdemo/SpringbootSwaggerDemoApplicationTests.java
+0
-0
未找到文件。
README.md
浏览文件 @
80ac7b1f
...
...
@@ -4,3 +4,6 @@
MyBatis Generator 代码生成器,配套教程:
[
MyBatis Generator 代码自动生成器,从此解放你的双手
](
https://blog.csdn.net/github_39655029/article/details/121927666
)
## [springboot-swagger2-demo](https://github.com/cunyu1943/java-learning-demos/tree/main/springboot-swagger2-demo)
SpringBoot 集成 Swagger2,配套教程:
[
Spring Boot 集成 Swagger2,构建强大的 API 文档
](
https://mp.weixin.qq.com/s/Z4D2p9hDVNM15SnXvz661w
)
springboot-swagger-demo/pom.xml
→
springboot-swagger
2
-demo/pom.xml
浏览文件 @
80ac7b1f
...
...
@@ -30,13 +30,6 @@
<version>
2.9.2
</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.google.guava</groupId>-->
<!-- <artifactId>guava</artifactId>-->
<!-- <version>20.0</version>-->
<!-- </dependency>-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
...
...
springboot-swagger-demo/src/main/java/com/cunyu/springbootswaggerdemo/SpringbootSwaggerDemoApplication.java
→
springboot-swagger
2
-demo/src/main/java/com/cunyu/springbootswaggerdemo/SpringbootSwaggerDemoApplication.java
浏览文件 @
80ac7b1f
文件已移动
springboot-swagger-demo/src/main/java/com/cunyu/springbootswaggerdemo/config/Swagger2Configuration.java
→
springboot-swagger
2
-demo/src/main/java/com/cunyu/springbootswaggerdemo/config/Swagger2Configuration.java
浏览文件 @
80ac7b1f
文件已移动
springboot-swagger-demo/src/main/java/com/cunyu/springbootswaggerdemo/controller/SwaggerDemoController.java
→
springboot-swagger
2
-demo/src/main/java/com/cunyu/springbootswaggerdemo/controller/SwaggerDemoController.java
浏览文件 @
80ac7b1f
...
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
/**
...
...
@@ -34,7 +35,7 @@ public class SwaggerDemoController {
@ApiOperation
(
value
=
"有参接口"
)
@PostMapping
(
"demo"
)
public
String
demo
(
@ApiParam
(
name
=
"name"
,
value
=
"村雨遥"
,
required
=
true
)
String
name
)
{
public
String
demo
(
@ApiParam
(
value
=
"姓名"
,
required
=
true
,
example
=
"村雨遥"
)
@RequestBody
String
name
)
{
return
"hello,"
+
name
;
}
}
springboot-swagger-demo/src/main/resources/application.yml
→
springboot-swagger
2
-demo/src/main/resources/application.yml
浏览文件 @
80ac7b1f
文件已移动
springboot-swagger-demo/src/test/java/com/cunyu/springbootswaggerdemo/SpringbootSwaggerDemoApplicationTests.java
→
springboot-swagger
2
-demo/src/test/java/com/cunyu/springbootswaggerdemo/SpringbootSwaggerDemoApplicationTests.java
浏览文件 @
80ac7b1f
文件已移动