Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-api-boot
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-api-boot
Commits
2ac056c0
提交
2ac056c0
authored
4月 29, 2022
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 文档更新、示例 Controller 调整
上级
8d84900f
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
5 行增加
和
6 行删除
+5
-6
README.md
README.md
+1
-1
ExampleController.java
app/src/main/java/com/yiring/app/web/ExampleController.java
+3
-3
SwaggerConfig.java
...rc/main/java/com/yiring/common/swagger/SwaggerConfig.java
+1
-1
skill.md
doc/skill.md
+0
-1
没有找到文件。
README.md
浏览文件 @
2ac056c0
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<!-- prettier-ignore -->
<!-- prettier-ignore -->
-
[
开发规范说明
](
./doc/workflow.md
)
-
[
开发规范说明
](
./doc/workflow.md
)
-
[
技术栈说明
](
./doc/technique.md
)
-
[
技术栈说明
](
./doc/technique.md
)
-
[
实用技巧
](
./doc/skill.md
)
-
👉
[
实用技巧
](
./doc/skill.md
)
---
---
...
...
app/src/main/java/com/yiring/app/web/
Hello
Controller.java
→
app/src/main/java/com/yiring/app/web/
Example
Controller.java
浏览文件 @
2ac056c0
...
@@ -27,10 +27,10 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -27,10 +27,10 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Slf4j
@Validated
@Validated
@Api
(
tags
=
"
Hello
"
)
@Api
(
tags
=
"
示例"
,
description
=
"Example
"
)
@RequestMapping
(
"/
hello
/"
)
@RequestMapping
(
"/
example
/"
)
@RestController
@RestController
public
class
Hello
Controller
{
public
class
Example
Controller
{
String
text
=
"😎 Hello World"
;
String
text
=
"😎 Hello World"
;
...
...
basic-common/doc/src/main/java/com/yiring/common/swagger/SwaggerConfig.java
浏览文件 @
2ac056c0
...
@@ -40,7 +40,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
...
@@ -40,7 +40,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
*/
*/
@Slf4j
@Slf4j
@Profile
(
value
=
{
"default"
,
"dev"
,
"mock"
,
"test"
,
"preview"
}
)
@Profile
(
"!prod"
)
@EnableSwagger2WebMvc
@EnableSwagger2WebMvc
@Configuration
@Configuration
@Import
(
BeanValidatorPluginsConfiguration
.
class
)
@Import
(
BeanValidatorPluginsConfiguration
.
class
)
...
...
doc/skill.md
浏览文件 @
2ac056c0
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
```
diff
```
diff
+ @Resource
+ @Resource
+ Redis redis;
+ Redis redis;
+ Object value = redis.get(key);
+ Object value = redis.get(key);
```
```
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论