diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml
index a29a0052f..e42ef66ab 100644
--- a/yudao-dependencies/pom.xml
+++ b/yudao-dependencies/pom.xml
@@ -19,7 +19,7 @@
2.7.7
1.6.14
-
+ 4.0.0
2.5
1.2.15
@@ -164,11 +164,11 @@
${revision}
-
-
-
-
-
+
+ com.github.xiaoymin
+ knife4j-openapi3-spring-boot-starter
+ ${knife4j.version}
+
org.springdoc
springdoc-openapi-ui
diff --git a/yudao-framework/yudao-common/pom.xml b/yudao-framework/yudao-common/pom.xml
index 0bf582993..760160330 100644
--- a/yudao-framework/yudao-common/pom.xml
+++ b/yudao-framework/yudao-common/pom.xml
@@ -58,10 +58,6 @@
provided
-
-
-
-
org.springdoc
springdoc-openapi-ui
diff --git a/yudao-framework/yudao-spring-boot-starter-web/pom.xml b/yudao-framework/yudao-spring-boot-starter-web/pom.xml
index 31bf43e12..e591cc329 100644
--- a/yudao-framework/yudao-spring-boot-starter-web/pom.xml
+++ b/yudao-framework/yudao-spring-boot-starter-web/pom.xml
@@ -33,10 +33,10 @@
true
-
-
-
-
+
+ com.github.xiaoymin
+ knife4j-openapi3-spring-boot-starter
+
org.springdoc
springdoc-openapi-ui
diff --git a/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/SwaggerProperties.java b/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/SwaggerProperties.java
index d1008eddc..21680cd00 100644
--- a/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/SwaggerProperties.java
+++ b/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/SwaggerProperties.java
@@ -39,5 +39,27 @@ public class SwaggerProperties {
*/
@NotEmpty(message = "扫描的 package 不能为空")
private String basePackage;
+ /**
+ * url
+ */
+ @NotEmpty(message = "扫描的 package 不能为空")
+ private String url;
+ /**
+ * email
+ */
+ @NotEmpty(message = "扫描的 email 不能为空")
+ private String email;
+
+ /**
+ * license
+ */
+ @NotEmpty(message = "扫描的 license 不能为空")
+ private String license;
+
+ /**
+ * license-url
+ */
+ @NotEmpty(message = "扫描的 license-url 不能为空")
+ private String licenseUrl;
}
diff --git a/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/YudaoSwaggerAutoConfiguration.java b/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/YudaoSwaggerAutoConfiguration.java
index 313b60010..0eb39b7ce 100644
--- a/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/YudaoSwaggerAutoConfiguration.java
+++ b/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/swagger/config/YudaoSwaggerAutoConfiguration.java
@@ -44,8 +44,8 @@ public class YudaoSwaggerAutoConfiguration {
.title(properties.getTitle())
.description(properties.getDescription())
.version(properties.getVersion())
- .contact(new Contact().name("xingyuv").url("xingyuv.com").email("xingyu4j@vip.qq.com"))
- .license(new License().name("MIT").url("https://gitee.com/zhijiantianya/ruoyi-vue-pro/blob/master/LICENSE"));
+ .contact(new Contact().name(properties.getAuthor()).url(properties.getUrl()).email(properties.getEmail()))
+ .license(new License().name(properties.getLicense()).url(properties.getLicenseUrl()));
return new OpenAPI()
.info(info)
.schemaRequirement(HttpHeaders.AUTHORIZATION, securityScheme())
diff --git a/yudao-framework/yudao-spring-boot-starter-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/yudao-framework/yudao-spring-boot-starter-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
index 2a422bfa2..44678daef 100644
--- a/yudao-framework/yudao-spring-boot-starter-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
+++ b/yudao-framework/yudao-spring-boot-starter-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
@@ -1,4 +1,5 @@
cn.iocoder.yudao.framework.apilog.config.YudaoApiLogAutoConfiguration
cn.iocoder.yudao.framework.jackson.config.YudaoJacksonAutoConfiguration
+com.github.xiaoymin.knife4j.spring.configuration.Knife4jAutoConfiguration
cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration
cn.iocoder.yudao.framework.web.config.YudaoWebAutoConfiguration
\ No newline at end of file
diff --git a/yudao-server/src/main/resources/application.yaml b/yudao-server/src/main/resources/application.yaml
index a14208ea0..f9cbf7759 100644
--- a/yudao-server/src/main/resources/application.yaml
+++ b/yudao-server/src/main/resources/application.yaml
@@ -43,11 +43,10 @@ springdoc:
enabled: true
path: /v3/api-docs
-
-#knife4j:
-# enable: true
-# setting:
-# language: zh_cn
+knife4j:
+ enable: true
+ setting:
+ language: zh_cn
# 工作流 Flowable 配置
flowable:
@@ -117,6 +116,10 @@ yudao:
description: 提供管理员管理的所有功能
version: ${yudao.info.version}
base-package: ${yudao.info.base-package}
+ url: ${yudao.web.admin-ui.url}
+ email: xingyu4j@vip.qq.com
+ license: MIT
+ license-url: https://gitee.com/zhijiantianya/ruoyi-vue-pro/blob/master/LICENSE
captcha:
enable: true # 验证码的开关,默认为 true
codegen:
diff --git a/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue b/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue
index 574e9ddd2..5d4697c1a 100644
--- a/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue
@@ -8,5 +8,5 @@ import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
const BASE_URL = import.meta.env.VITE_BASE_URL
-const src = ref(BASE_URL + '/swagger-ui')
+const src = ref(BASE_URL + '/doc.html')