Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
有来开源组织
youlai-mall
提交
3c51373c
Y
youlai-mall
项目概览
有来开源组织
/
youlai-mall
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
youlai-mall
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3c51373c
编写于
10月 31, 2023
作者:
郝
郝先瑞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 抽离 API 文档配置至公共模块 common-apidoc
上级
844c3cf5
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
223 addition
and
360 deletion
+223
-360
mall-oms/oms-boot/pom.xml
mall-oms/oms-boot/pom.xml
+7
-4
mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/config/SwaggerConfig.java
...c/main/java/com/youlai/mall/oms/config/SwaggerConfig.java
+0
-69
mall-pms/pms-boot/pom.xml
mall-pms/pms-boot/pom.xml
+5
-0
mall-pms/pms-boot/src/main/java/com/youlai/mall/pms/config/SwaggerConfig.java
...c/main/java/com/youlai/mall/pms/config/SwaggerConfig.java
+0
-70
mall-sms/sms-boot/pom.xml
mall-sms/sms-boot/pom.xml
+3
-3
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/config/SwaggerConfig.java
...c/main/java/com/youlai/mall/sms/config/SwaggerConfig.java
+0
-68
mall-ums/ums-boot/pom.xml
mall-ums/ums-boot/pom.xml
+5
-0
mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/config/SwaggerConfig.java
...c/main/java/com/youlai/mall/ums/config/SwaggerConfig.java
+0
-69
youlai-auth/src/main/java/com/youlai/auth/config/SwaggerConfig.java
...h/src/main/java/com/youlai/auth/config/SwaggerConfig.java
+0
-65
youlai-common/common-apidoc/pom.xml
youlai-common/common-apidoc/pom.xml
+36
-0
youlai-common/common-apidoc/src/main/java/com/youlai/common/apidoc/config/ApiDocInfoProperties.java
...com/youlai/common/apidoc/config/ApiDocInfoProperties.java
+73
-0
youlai-common/common-apidoc/src/main/java/com/youlai/common/apidoc/config/OpenApiConfig.java
...n/java/com/youlai/common/apidoc/config/OpenApiConfig.java
+86
-0
youlai-common/common-apidoc/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
...ingframework.boot.autoconfigure.AutoConfiguration.imports
+1
-0
youlai-common/common-web/pom.xml
youlai-common/common-web/pom.xml
+1
-12
youlai-common/pom.xml
youlai-common/pom.xml
+1
-0
youlai-system/system-boot/pom.xml
youlai-system/system-boot/pom.xml
+5
-0
未找到文件。
mall-oms/oms-boot/pom.xml
浏览文件 @
3c51373c
...
...
@@ -48,7 +48,10 @@
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-pay
</artifactId>
</dependency>
<dependency>
<groupId>
com.youlai
</groupId>
...
...
@@ -86,13 +89,13 @@
</dependency>
<dependency>
<groupId>
com.
github.binarywang
</groupId>
<artifactId>
weixin-java-pay
</artifactId>
<groupId>
com.
youlai
</groupId>
<artifactId>
common-seata
</artifactId>
</dependency>
<dependency>
<groupId>
com.youlai
</groupId>
<artifactId>
common-
seata
</artifactId>
<artifactId>
common-
apidoc
</artifactId>
</dependency>
</dependencies>
...
...
mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/config/SwaggerConfig.java
已删除
100644 → 0
浏览文件 @
844c3cf5
package
com.youlai.mall.oms.config
;
import
io.swagger.v3.oas.models.Components
;
import
io.swagger.v3.oas.models.OpenAPI
;
import
io.swagger.v3.oas.models.info.Info
;
import
io.swagger.v3.oas.models.info.License
;
import
io.swagger.v3.oas.models.security.OAuthFlows
;
import
io.swagger.v3.oas.models.security.Scopes
;
import
io.swagger.v3.oas.models.security.SecurityScheme
;
import
org.springdoc.core.models.GroupedOpenApi
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* Swagger 配置
* <p>
* Spring Doc FAQ: https://springdoc.org/#faq
*
* @author haoxr
* @since 2023/2/17
*/
@Configuration
public
class
SwaggerConfig
{
/**
* 认证服务地址
*/
@Value
(
"${knife4j.oauth2.token-url}"
)
private
String
tokenUrl
;
/**
* 接口信息
*/
@Bean
public
OpenAPI
apiInfo
()
{
return
new
OpenAPI
()
.
components
(
new
Components
()
.
addSecuritySchemes
(
"Authorization"
,
new
SecurityScheme
()
.
name
(
"Authorization"
)
.
type
(
SecurityScheme
.
Type
.
OAUTH2
)
.
flows
(
new
OAuthFlows
()
.
password
(
new
io
.
swagger
.
v3
.
oas
.
models
.
security
.
OAuthFlow
()
.
tokenUrl
(
tokenUrl
)
.
refreshUrl
(
tokenUrl
)
.
scopes
(
new
Scopes
()
.
addString
(
"all"
,
"全部权限"
)
)
)
)
.
scheme
(
"bearer"
)
.
in
(
SecurityScheme
.
In
.
HEADER
)
.
bearerFormat
(
"JWT"
)
)
)
.
info
(
new
Info
()
.
title
(
"订单服务"
)
.
version
(
"3.0.0"
)
.
description
(
"订单、购物车等接口"
)
.
license
(
new
License
().
name
(
"Apache 2.0"
)
.
url
(
"https://www.apache.org/licenses/LICENSE-2.0"
))
);
}
}
mall-pms/pms-boot/pom.xml
浏览文件 @
3c51373c
...
...
@@ -92,6 +92,11 @@
<artifactId>
common-seata
</artifactId>
</dependency>
<dependency>
<groupId>
com.youlai
</groupId>
<artifactId>
common-apidoc
</artifactId>
</dependency>
</dependencies>
<build>
...
...
mall-pms/pms-boot/src/main/java/com/youlai/mall/pms/config/SwaggerConfig.java
已删除
100644 → 0
浏览文件 @
844c3cf5
package
com.youlai.mall.pms.config
;
import
io.swagger.v3.oas.models.Components
;
import
io.swagger.v3.oas.models.OpenAPI
;
import
io.swagger.v3.oas.models.info.Info
;
import
io.swagger.v3.oas.models.info.License
;
import
io.swagger.v3.oas.models.security.OAuthFlows
;
import
io.swagger.v3.oas.models.security.Scopes
;
import
io.swagger.v3.oas.models.security.SecurityScheme
;
import
org.springdoc.core.models.GroupedOpenApi
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* Swagger 配置
* <p>
* Spring Doc FAQ: https://springdoc.org/#faq
*
* @author haoxr
* @since 2023/2/17
*/
@Configuration
public
class
SwaggerConfig
{
/**
* 认证服务地址
*/
@Value
(
"${knife4j.oauth2.token-url}"
)
private
String
tokenUrl
;
/**
* 接口信息
*/
@Bean
public
OpenAPI
apiInfo
()
{
return
new
OpenAPI
()
.
components
(
new
Components
()
.
addSecuritySchemes
(
"Authorization"
,
new
SecurityScheme
()
.
name
(
"Authorization"
)
.
type
(
SecurityScheme
.
Type
.
OAUTH2
)
.
flows
(
new
OAuthFlows
()
.
password
(
new
io
.
swagger
.
v3
.
oas
.
models
.
security
.
OAuthFlow
()
.
tokenUrl
(
tokenUrl
)
.
refreshUrl
(
tokenUrl
)
.
scopes
(
new
Scopes
()
.
addString
(
"all"
,
"全部权限"
)
)
)
)
.
scheme
(
"bearer"
)
.
in
(
SecurityScheme
.
In
.
HEADER
)
.
bearerFormat
(
"JWT"
)
)
)
.
info
(
new
Info
()
.
title
(
"商品服务"
)
.
version
(
"3.0.0"
)
.
description
(
"库存、分类、品牌、规格、参数等接口"
)
.
license
(
new
License
().
name
(
"Apache 2.0"
)
.
url
(
"https://www.apache.org/licenses/LICENSE-2.0"
))
);
}
}
mall-sms/sms-boot/pom.xml
浏览文件 @
3c51373c
...
...
@@ -79,13 +79,13 @@
</dependency>
<dependency>
<groupId>
org.mapstruct
</groupId>
<artifactId>
mapstruct
</artifactId>
<groupId>
com.youlai
</groupId>
<artifactId>
common-security
</artifactId>
</dependency>
<dependency>
<groupId>
com.youlai
</groupId>
<artifactId>
common-
security
</artifactId>
<artifactId>
common-
apidoc
</artifactId>
</dependency>
</dependencies>
...
...
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/config/SwaggerConfig.java
已删除
100644 → 0
浏览文件 @
844c3cf5
package
com.youlai.mall.sms.config
;
import
io.swagger.v3.oas.models.Components
;
import
io.swagger.v3.oas.models.OpenAPI
;
import
io.swagger.v3.oas.models.info.Info
;
import
io.swagger.v3.oas.models.info.License
;
import
io.swagger.v3.oas.models.security.OAuthFlows
;
import
io.swagger.v3.oas.models.security.Scopes
;
import
io.swagger.v3.oas.models.security.SecurityScheme
;
import
org.springdoc.core.models.GroupedOpenApi
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* Swagger 配置
* <p>
* Spring Doc FAQ: https://springdoc.org/#faq
*
* @author haoxr
* @since 2023/2/17
*/
@Configuration
public
class
SwaggerConfig
{
/**
* 认证服务地址
*/
@Value
(
"${knife4j.oauth2.token-url}"
)
private
String
tokenUrl
;
/**
* 接口信息
*/
@Bean
public
OpenAPI
apiInfo
()
{
return
new
OpenAPI
()
.
components
(
new
Components
()
.
addSecuritySchemes
(
"Authorization"
,
new
SecurityScheme
()
.
name
(
"Authorization"
)
.
type
(
SecurityScheme
.
Type
.
OAUTH2
)
.
flows
(
new
OAuthFlows
()
.
password
(
new
io
.
swagger
.
v3
.
oas
.
models
.
security
.
OAuthFlow
()
.
tokenUrl
(
tokenUrl
)
.
refreshUrl
(
tokenUrl
)
.
scopes
(
new
Scopes
()
.
addString
(
"all"
,
"全部权限"
)
)
)
)
.
scheme
(
"bearer"
)
.
in
(
SecurityScheme
.
In
.
HEADER
)
.
bearerFormat
(
"JWT"
)
)
)
.
info
(
new
Info
()
.
title
(
"营销服务"
)
.
version
(
"3.0.0"
)
.
description
(
"广告、优惠券等接口"
)
.
license
(
new
License
().
name
(
"Apache 2.0"
)
.
url
(
"https://www.apache.org/licenses/LICENSE-2.0"
))
);
}
}
mall-ums/ums-boot/pom.xml
浏览文件 @
3c51373c
...
...
@@ -78,6 +78,11 @@
<artifactId>
common-seata
</artifactId>
</dependency>
<dependency>
<groupId>
com.youlai
</groupId>
<artifactId>
common-apidoc
</artifactId>
</dependency>
</dependencies>
<build>
...
...
mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/config/SwaggerConfig.java
已删除
100644 → 0
浏览文件 @
844c3cf5
package
com.youlai.mall.ums.config
;
import
io.swagger.v3.oas.models.Components
;
import
io.swagger.v3.oas.models.OpenAPI
;
import
io.swagger.v3.oas.models.info.Info
;
import
io.swagger.v3.oas.models.info.License
;
import
io.swagger.v3.oas.models.security.OAuthFlows
;
import
io.swagger.v3.oas.models.security.Scopes
;
import
io.swagger.v3.oas.models.security.SecurityScheme
;
import
org.springdoc.core.models.GroupedOpenApi
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* Swagger 配置
* <p>
* Spring Doc FAQ: https://springdoc.org/#faq
*
* @author haoxr
* @since 2023/2/17
*/
@Configuration
public
class
SwaggerConfig
{
/**
* 认证服务地址
*/
@Value
(
"${knife4j.oauth2.token-url}"
)
private
String
tokenUrl
;
/**
* 接口信息
*/
@Bean
public
OpenAPI
apiInfo
()
{
return
new
OpenAPI
()
.
components
(
new
Components
()
.
addSecuritySchemes
(
"Authorization"
,
new
SecurityScheme
()
.
name
(
"Authorization"
)
.
type
(
SecurityScheme
.
Type
.
OAUTH2
)
.
flows
(
new
OAuthFlows
()
.
password
(
new
io
.
swagger
.
v3
.
oas
.
models
.
security
.
OAuthFlow
()
.
tokenUrl
(
tokenUrl
)
.
refreshUrl
(
tokenUrl
)
.
scopes
(
new
Scopes
()
.
addString
(
"all"
,
"全部权限"
)
)
)
)
.
scheme
(
"bearer"
)
.
in
(
SecurityScheme
.
In
.
HEADER
)
.
bearerFormat
(
"JWT"
)
)
)
.
info
(
new
Info
()
.
title
(
"会员服务"
)
.
version
(
"3.0.0"
)
.
description
(
"会员、地址等接口"
)
.
license
(
new
License
().
name
(
"Apache 2.0"
)
.
url
(
"https://www.apache.org/licenses/LICENSE-2.0"
))
);
}
}
youlai-auth/src/main/java/com/youlai/auth/config/SwaggerConfig.java
已删除
100644 → 0
浏览文件 @
844c3cf5
package
com.youlai.auth.config
;
import
io.swagger.v3.oas.models.Components
;
import
io.swagger.v3.oas.models.OpenAPI
;
import
io.swagger.v3.oas.models.info.Info
;
import
io.swagger.v3.oas.models.info.License
;
import
io.swagger.v3.oas.models.security.OAuthFlows
;
import
io.swagger.v3.oas.models.security.Scopes
;
import
io.swagger.v3.oas.models.security.SecurityScheme
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* Swagger 配置
*
* @author haoxr
* @since 2023/2/17
*/
@Configuration
public
class
SwaggerConfig
{
/**
* 认证服务地址
*/
@Value
(
"${knife4j.oauth2.token-url}"
)
private
String
tokenUrl
;
/**
* 接口信息
*/
@Bean
public
OpenAPI
apiInfo
()
{
return
new
OpenAPI
()
.
components
(
new
Components
()
.
addSecuritySchemes
(
"Authorization"
,
new
SecurityScheme
()
.
name
(
"Authorization"
)
.
type
(
SecurityScheme
.
Type
.
OAUTH2
)
.
flows
(
new
OAuthFlows
()
.
password
(
new
io
.
swagger
.
v3
.
oas
.
models
.
security
.
OAuthFlow
()
.
tokenUrl
(
tokenUrl
)
.
refreshUrl
(
tokenUrl
)
.
scopes
(
new
Scopes
()
.
addString
(
"all"
,
"全部权限"
)
)
)
)
.
scheme
(
"bearer"
)
.
in
(
SecurityScheme
.
In
.
HEADER
)
.
bearerFormat
(
"JWT"
)
)
)
.
info
(
new
Info
()
.
title
(
"认证中心"
)
.
version
(
"3.0.0"
)
.
description
(
"认证接口"
)
.
license
(
new
License
().
name
(
"Apache 2.0"
)
.
url
(
"https://www.apache.org/licenses/LICENSE-2.0"
))
);
}
}
youlai-common/common-apidoc/pom.xml
0 → 100644
浏览文件 @
3c51373c
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.youlai
</groupId>
<artifactId>
youlai-mall
</artifactId>
<version>
3.0.0
</version>
<relativePath>
../../pom.xml
</relativePath>
</parent>
<artifactId>
common-apidoc
</artifactId>
<properties>
<maven.compiler.source>
17
</maven.compiler.source>
<maven.compiler.target>
17
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- 接口文档 -->
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
knife4j-openapi3-jakarta-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
youlai-common/common-apidoc/src/main/java/com/youlai/common/apidoc/config/ApiDocInfoProperties.java
0 → 100644
浏览文件 @
3c51373c
package
com.youlai.common.apidoc.config
;
import
lombok.Data
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
/**
* API 信息属性
*
* @author haoxr
* @since 2023/10/30
*/
@Data
@ConfigurationProperties
(
prefix
=
"springdoc.info"
)
public
class
ApiDocInfoProperties
{
/**
* API文档标题
*/
private
String
title
;
/**
* API文档版本
*/
private
String
version
;
/**
* API文档描述
*/
private
String
description
;
/**
* 联系人信息
*/
private
Contact
contact
;
/**
* 许可证信息
*/
private
License
license
;
@Data
public
static
class
Contact
{
/**
* 联系人姓名
*/
private
String
name
;
/**
* 联系人主页
*/
private
String
url
;
/**
* 联系人邮箱
*/
private
String
email
;
}
/**
* 许可证信息
*/
@Data
public
static
class
License
{
/**
* 许可证名称
*/
private
String
name
;
/**
* 许可证URL
*/
private
String
url
;
}
}
youlai-
system/system-boot/src/main/java/com/youlai/system/config/Swagger
Config.java
→
youlai-
common/common-apidoc/src/main/java/com/youlai/common/apidoc/config/OpenApi
Config.java
浏览文件 @
3c51373c
package
com.youlai.
system
.config
;
package
com.youlai.
common.apidoc
.config
;
import
io.swagger.v3.oas.models.Components
;
import
io.swagger.v3.oas.models.OpenAPI
;
import
io.swagger.v3.oas.models.info.Contact
;
import
io.swagger.v3.oas.models.info.Info
;
import
io.swagger.v3.oas.models.info.License
;
import
io.swagger.v3.oas.models.security.OAuthFlow
;
import
io.swagger.v3.oas.models.security.OAuthFlows
;
import
io.swagger.v3.oas.models.security.S
copes
;
import
io.swagger.v3.oas.models.security.S
ecurityRequirement
;
import
io.swagger.v3.oas.models.security.SecurityScheme
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.http.HttpHeaders
;
/**
* Swagger 配置
* OpenAPI 配置类
* <p>
* 基于 OpenAPI 3.0 规范 + SpringDoc 实现 + knife4j 增强
*
* @author haoxr
* @since 3.0.0
*/
@Configuration
public
class
SwaggerConfig
{
@RequiredArgsConstructor
@EnableConfigurationProperties
(
ApiDocInfoProperties
.
class
)
public
class
OpenApiConfig
{
/**
*
认证服务地址
*
OAuth2 认证 endpoint
*/
@Value
(
"${
knife4j.oauth2.token-url
}"
)
private
String
tokenUrl
;
@Value
(
"${
spring.security.oauth2.authorizationserver.token-uri
}"
)
private
String
tokenUrl
;
/**
* 接口信息
* API 文档信息属性
*/
private
final
ApiDocInfoProperties
apiDocInfoProperties
;
/**
* OpenAPI 配置(元信息、安全协议)
*/
@Bean
public
OpenAPI
apiInfo
()
{
return
new
OpenAPI
()
.
components
(
new
Components
()
.
addSecuritySchemes
(
"Authorization"
,
.
addSecuritySchemes
(
HttpHeaders
.
AUTHORIZATION
,
new
SecurityScheme
()
.
name
(
"Authorization"
)
// OAuth2 授权模式
.
type
(
SecurityScheme
.
Type
.
OAUTH2
)
.
name
(
HttpHeaders
.
AUTHORIZATION
)
.
flows
(
new
OAuthFlows
()
.
password
(
new
io
.
swagger
.
v3
.
oas
.
models
.
security
.
OAuthFlow
()
new
OAuthFlow
()
.
tokenUrl
(
tokenUrl
)
.
refreshUrl
(
tokenUrl
)
.
scopes
(
new
Scopes
()
.
addString
(
"all"
,
"全部权限"
)
)
)
)
.
scheme
(
"bearer"
)
// 安全模式使用Bearer令牌(即JWT)
.
in
(
SecurityScheme
.
In
.
HEADER
)
.
scheme
(
"Bearer"
)
.
bearerFormat
(
"JWT"
)
)
)
// 接口全局添加 Authorization 参数
.
addSecurityItem
(
new
SecurityRequirement
().
addList
(
HttpHeaders
.
AUTHORIZATION
))
// 接口文档信息(不重要)
.
info
(
new
Info
()
.
title
(
"系统服务"
)
.
version
(
"3.0.0"
)
.
description
(
"用户、角色、菜单、部门、字典等接口"
)
.
license
(
new
License
().
name
(
"Apache 2.0"
)
.
url
(
"https://www.apache.org/licenses/LICENSE-2.0"
))
);
.
title
(
apiDocInfoProperties
.
getTitle
())
.
version
(
apiDocInfoProperties
.
getVersion
())
.
description
(
apiDocInfoProperties
.
getDescription
())
.
contact
(
new
Contact
()
.
name
(
apiDocInfoProperties
.
getContact
().
getName
())
.
url
(
apiDocInfoProperties
.
getContact
().
getUrl
())
.
email
(
apiDocInfoProperties
.
getContact
().
getEmail
())
)
.
license
(
new
License
().
name
(
apiDocInfoProperties
.
getLicense
().
getName
())
.
url
(
apiDocInfoProperties
.
getLicense
().
getUrl
())
));
}
}
youlai-common/common-apidoc/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
0 → 100644
浏览文件 @
3c51373c
com.youlai.common.apidoc.config.OpenApiConfig
youlai-common/common-web/pom.xml
浏览文件 @
3c51373c
...
...
@@ -12,6 +12,7 @@
<artifactId>
common-web
</artifactId>
<dependencies>
<dependency>
<groupId>
com.youlai
</groupId>
<artifactId>
common-core
</artifactId>
...
...
@@ -48,12 +49,6 @@
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
io.swagger.core.v3
</groupId>
<artifactId>
swagger-annotations
</artifactId>
</dependency>
<dependency>
<groupId>
org.mapstruct
</groupId>
<artifactId>
mapstruct
</artifactId>
...
...
@@ -69,12 +64,6 @@
<artifactId>
spring-boot-starter-validation
</artifactId>
</dependency>
<!-- 接口文档 -->
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
knife4j-openapi3-jakarta-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.youlai
</groupId>
<artifactId>
common-security
</artifactId>
...
...
youlai-common/pom.xml
浏览文件 @
3c51373c
...
...
@@ -14,6 +14,7 @@
<packaging>
pom
</packaging>
<modules>
<module>
common-apidoc
</module>
<module>
common-core
</module>
<module>
common-redis
</module>
<module>
common-web
</module>
...
...
youlai-system/system-boot/pom.xml
浏览文件 @
3c51373c
...
...
@@ -112,6 +112,11 @@
<artifactId>
common-security
</artifactId>
</dependency>
<dependency>
<groupId>
com.youlai
</groupId>
<artifactId>
common-apidoc
</artifactId>
</dependency>
</dependencies>
<build>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录