Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
ims-ci-test
Commits
da09788e
提交
da09788e
authored
5月 20, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
ssh://git.mmcuav.cn:8222/iuav/ims
into develop
上级
ef1b83a3
1394ba09
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
29 行删除
+30
-29
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
pom.xml
pom.xml
+0
-0
Knife4jConfiguration.java
...java/com/mmc/csf/release/config/Knife4jConfiguration.java
+29
-28
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
da09788e
...
@@ -17,4 +17,4 @@ patches:
...
@@ -17,4 +17,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims
newTag
:
22e5dcdd0bd2ade526032be0291855d8821edb37
newTag
:
09968b4f255a4f7bc2a5ae9be3384a39bd1e27f1
pom.xml
浏览文件 @
da09788e
差异被折叠。
点击展开。
release-service/src/main/java/com/mmc/csf/release/config/Knife4jConfiguration.java
浏览文件 @
da09788e
package
com
.
mmc
.
csf
.
release
.
config
;
package
com
.
mmc
.
csf
.
release
.
config
;
import
com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
springfox.documentation.builders.ApiInfoBuilder
;
import
springfox.documentation.builders.ApiInfoBuilder
;
...
@@ -9,37 +8,39 @@ import springfox.documentation.builders.RequestHandlerSelectors;
...
@@ -9,37 +8,39 @@ import springfox.documentation.builders.RequestHandlerSelectors;
import
springfox.documentation.service.ApiInfo
;
import
springfox.documentation.service.ApiInfo
;
import
springfox.documentation.spi.DocumentationType
;
import
springfox.documentation.spi.DocumentationType
;
import
springfox.documentation.spring.web.plugins.Docket
;
import
springfox.documentation.spring.web.plugins.Docket
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
WebMvc
;
/**
/**
* @author:zhenjie
* knife4j配置
* @Date:2023/5/16 10:07
*
* @author 23214
* @date 2023/05/20
*/
*/
@Configuration
@Configuration
@EnableSwagger2
@EnableSwagger2WebMvc
@EnableKnife4j
public
class
Knife4jConfiguration
{
public
class
Knife4jConfiguration
{
@Bean
(
value
=
"defaultApi2"
)
@Bean
(
value
=
"defaultApi2"
)
public
Docket
defaultApi2
()
{
public
Docket
defaultApi2
()
{
Docket
docket
=
new
Docket
(
DocumentationType
.
SWAGGER_2
)
Docket
docket
=
.
apiInfo
(
apiInfo
())
new
Docket
(
DocumentationType
.
SWAGGER_2
)
//分组名称
.
apiInfo
(
apiInfo
())
.
groupName
(
"信息发布服务"
)
// 分组名称
.
select
()
.
groupName
(
"信息发布服务"
)
//这里指定Controller扫描包路径
.
select
()
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.mmc.csf.release.controller"
))
// 这里指定Controller扫描包路径
.
paths
(
PathSelectors
.
any
())
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.mmc.csf.release.controller"
))
.
build
();
.
paths
(
PathSelectors
.
any
())
return
docket
;
.
build
();
}
return
docket
;
private
ApiInfo
apiInfo
(){
}
return
new
ApiInfoBuilder
()
.
title
(
"iuav信息发布相关"
)
private
ApiInfo
apiInfo
()
{
.
description
(
"swagger-bootstrap-ui-demo RESTful APIs"
)
return
new
ApiInfoBuilder
()
.
termsOfServiceUrl
(
"https://www.iuav.com/"
)
.
title
(
"iuav信息发布相关"
)
.
contact
(
"group@qq.com"
)
.
description
(
"swagger-bootstrap-ui-demo RESTful APIs"
)
.
version
(
"1.0"
)
.
termsOfServiceUrl
(
"https://www.iuav.com/"
)
.
build
();
.
version
(
"1.0"
)
}
.
build
();
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论