将“系统接口”菜单设置为外链
This commit is contained in:
parent
f71bf701f1
commit
36460e0052
@ -127,19 +127,20 @@ pagehelper:
|
||||
|
||||
# SpringDoc配置
|
||||
springdoc:
|
||||
packages-to-scan: ##需要扫描的包,可以配置多个
|
||||
- com.ruoyi.demo.*
|
||||
paths-to-exclude: ##配置不包含在swagger文档中的api
|
||||
#需要扫描的包,可以配置多个,使用逗号分割
|
||||
packages-to-scan: com.ruoyi.demo
|
||||
paths-to-exclude: #配置不包含在swagger文档中的api
|
||||
- /api/test/**
|
||||
- /api/mockito/data
|
||||
swagger-ui:
|
||||
enabled: true #开启/禁止swagger,prod可以设置为false
|
||||
disable-swagger-default-url: true #禁用default petstore url
|
||||
path: /swagger-ui.html #swagger页面
|
||||
persistAuthorization: true # 持久化认证数据,如果设置为 true,它会保留授权数据并且不会在浏览器关闭/刷新时丢失
|
||||
csrf:
|
||||
enabled: true # 启用CSRF支持
|
||||
api-docs:
|
||||
enabled: true #开启/禁止api-docs, prod可以设置为false
|
||||
path: /api-docs #api的json文档
|
||||
use-management-port: false
|
||||
enable-spring-security: true
|
||||
|
||||
|
@ -21,6 +21,11 @@
|
||||
<artifactId>ruoyi-common-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-springdoc</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
@ -1,15 +0,0 @@
|
||||
<template>
|
||||
<i-frame :src="url" />
|
||||
</template>
|
||||
<script>
|
||||
import iFrame from "@/components/iFrame/index";
|
||||
export default {
|
||||
name: "Swagger",
|
||||
components: { iFrame },
|
||||
data() {
|
||||
return {
|
||||
url: process.env.VUE_APP_BASE_API + "/swagger-ui.html"
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
@ -137,5 +137,8 @@ INSERT INTO `gen_table_column` (`column_id`, `table_id`, `column_name`, `column_
|
||||
(72, 12, 'date', '商品时间', 'datetime', 'Date', 'date', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'datetime', '', 6, 'admin', '2023-07-11 15:52:15', '', NULL),
|
||||
(73, 12, 'type', '商品种类', 'char(1)', 'String', 'type', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', '', 7, 'admin', '2023-07-11 15:52:15', '', NULL);
|
||||
|
||||
-- udate to Ruoyi-Flex V4.1.2:
|
||||
-- udate to Ruoyi-Flex V4.1.2: 删除druid
|
||||
delete FROM sys_menu where menu_id=111
|
||||
|
||||
-- udate to Ruoyi-Flex V4.1.3: 将“系统接口”设置为外链
|
||||
update sys_menu SET path="http://localhost:8080/swagger-ui/index.html", component = "", is_frame = "0", menu_type = "M" where menu_id = 117
|
||||
|
Loading…
Reference in New Issue
Block a user