Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 36ff6e91
authored
Apr 14, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:小程序openapi 配置
1 parent
8b84367a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
aus-api/pom.xml
aus-api/src/main/java/com/glsx/usedcar/config/OpenApiConfig.java
aus-api/pom.xml
View file @
36ff6e9
...
@@ -163,6 +163,11 @@
...
@@ -163,6 +163,11 @@
<scope>
test
</scope>
<scope>
test
</scope>
<type>
jar
</type>
<type>
jar
</type>
</dependency>
</dependency>
<dependency>
<groupId>
com.github.xingfudeshi
</groupId>
<artifactId>
knife4j-openapi3-jakarta-spring-boot-starter
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
aus-api/src/main/java/com/glsx/usedcar/config/OpenApiConfig.java
0 → 100644
View file @
36ff6e9
package
com
.
glsx
.
usedcar
.
config
;
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
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* <pre>
* Knife4j/OpenAPI配置类
* 用于启用和配置Swagger文档
* 访问地址:<a href="http://localhost:6901/api/doc.html">aus-api API文档</a>
* </pre>
* @author yangwei
* @since 2026/2/9 18:25
*/
@Configuration
public
class
OpenApiConfig
{
@Bean
public
OpenAPI
customOpenApi
()
{
return
new
OpenAPI
()
.
info
(
new
Info
()
.
title
(
"aus-api API文档"
)
.
version
(
"1.0.0"
)
.
description
(
"专电优拍小程序API接口文档"
)
.
contact
(
new
Contact
()
.
name
(
"开发团队"
)
.
email
(
"yangwei@didihu.com.cn"
)
.
url
(
"https://gitee.com/foutouren/aus.git"
))
.
license
(
new
License
()
.
name
(
"Apache 2.0"
)
.
url
(
"http://www.apache.org/licenses/LICENSE-2.0.html"
)));
}
}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment