Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
1da4045c
提交
1da4045c
authored
5月 20, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接口文档修改
上级
4944dd8c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
46 行增加
和
37 行删除
+46
-37
pom.xml
csm-service/cms-service-user/pom.xml
+10
-5
Knife4jConfiguration.java
...n/java/com/mmc/iuav/user/config/Knife4jConfiguration.java
+5
-7
pom.xml
pom.xml
+31
-25
没有找到文件。
csm-service/cms-service-user/pom.xml
浏览文件 @
1da4045c
...
@@ -79,11 +79,16 @@
...
@@ -79,11 +79,16 @@
<!-- <artifactId>spring-boot-starter-amqp</artifactId>-->
<!-- <artifactId>spring-boot-starter-amqp</artifactId>-->
<!-- </dependency>-->
<!-- </dependency>-->
<dependency>
<!-- <dependency>-->
<groupId>
com.github.xiaoymin
</groupId>
<!-- <groupId>com.github.xiaoymin</groupId>-->
<artifactId>
knife4j-spring-boot-starter
</artifactId>
<!-- <artifactId>knife4j-spring-boot-starter</artifactId>-->
<version>
2.0.5
</version>
<!-- <version>2.0.5</version>-->
</dependency>
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.github.xiaoymin</groupId>-->
<!-- <artifactId>knife4j-openapi2-spring-boot-starter</artifactId>-->
<!-- <version>4.0.0</version>-->
<!-- </dependency>-->
</dependencies>
</dependencies>
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/config/Knife4jConfiguration.java
浏览文件 @
1da4045c
package
com
.
mmc
.
iuav
.
user
.
config
;
package
com
.
mmc
.
iuav
.
user
.
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,15 +8,14 @@ import springfox.documentation.builders.RequestHandlerSelectors;
...
@@ -9,15 +8,14 @@ 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
* @author:
zj
* @Date:2023/5/16 10:07
* @Date:
2023/5/16 10:07
*/
*/
@Configuration
@Configuration
@EnableSwagger2
@EnableSwagger2WebMvc
@EnableKnife4j
public
class
Knife4jConfiguration
{
public
class
Knife4jConfiguration
{
@Bean
(
value
=
"defaultApi2"
)
@Bean
(
value
=
"defaultApi2"
)
...
@@ -37,7 +35,7 @@ public class Knife4jConfiguration {
...
@@ -37,7 +35,7 @@ public class Knife4jConfiguration {
return
new
ApiInfoBuilder
()
return
new
ApiInfoBuilder
()
.
title
(
"iuav用户相关"
)
.
title
(
"iuav用户相关"
)
.
description
(
"swagger-bootstrap-ui-demo RESTful APIs"
)
.
description
(
"swagger-bootstrap-ui-demo RESTful APIs"
)
.
termsOfServiceUrl
(
"https://
www.iuav.com
/"
)
.
termsOfServiceUrl
(
"https://
iuav.mmcuav.cn
/"
)
.
contact
(
"group@qq.com"
)
.
contact
(
"group@qq.com"
)
.
version
(
"1.0"
)
.
version
(
"1.0"
)
.
build
();
.
build
();
...
...
pom.xml
浏览文件 @
1da4045c
...
@@ -30,12 +30,12 @@
...
@@ -30,12 +30,12 @@
<dependencies>
<dependencies>
<!-- lombok 工具通过在代码编译时期动态的将注解替换为具体的代码, IDEA 需要添加 lombok 插件 -->
<!-- lombok 工具通过在代码编译时期动态的将注解替换为具体的代码, IDEA 需要添加 lombok 插件 -->
<dependency
>
<!-- <dependency>--
>
<groupId>
org.projectlombok
</groupId
>
<!-- <groupId>org.projectlombok</groupId>--
>
<artifactId>
lombok
</artifactId
>
<!-- <artifactId>lombok</artifactId>--
>
<version>
1.18.20
</version
>
<!-- <version>1.18.20</version>--
>
<scope>
provided
</scope
>
<!-- <scope>provided</scope>--
>
</dependency
>
<!-- </dependency>--
>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
@@ -50,27 +50,33 @@
...
@@ -50,27 +50,33 @@
</dependency>
</dependency>
<!-- swagger2 -->
<!-- swagger2 -->
<dependency>
<!-- <dependency>-->
<groupId>
io.springfox
</groupId>
<!-- <groupId>io.springfox</groupId>-->
<artifactId>
springfox-swagger2
</artifactId>
<!-- <artifactId>springfox-swagger2</artifactId>-->
<version>
2.8.0
</version>
<!-- <version>2.8.0</version>-->
</dependency>
<!-- </dependency>-->
<dependency>
<!-- <dependency>-->
<groupId>
io.springfox
</groupId>
<!-- <groupId>io.springfox</groupId>-->
<artifactId>
springfox-swagger-ui
</artifactId>
<!-- <artifactId>springfox-swagger-ui</artifactId>-->
<version>
2.8.0
</version>
<!-- <version>2.8.0</version>-->
</dependency>
<!-- </dependency>-->
<!-- 引入swagger-bootstrap-ui包 -->
<!-- <!– 引入swagger-bootstrap-ui包 –>-->
<dependency>
<!-- <dependency>-->
<groupId>
com.github.xiaoymin
</groupId>
<!-- <groupId>com.github.xiaoymin</groupId>-->
<artifactId>
swagger-bootstrap-ui
</artifactId>
<!-- <artifactId>swagger-bootstrap-ui</artifactId>-->
<version>
1.8.5
</version>
<!-- <version>1.8.5</version>-->
</dependency>
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-bean-validators</artifactId>-->
<!-- <version>${springfox.version}</version>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
springfox-bean-validators
</artifactId>
<artifactId>
knife4j-openapi2-spring-boot-starter
</artifactId>
<version>
${springfox.version}
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论