登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情
代码拉取完成,页面将自动刷新
开源项目
>
开发工具
>
开发/调试
&&
WEB应用开发
>
WebUI组件/框架
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
790
Star
7K
Fork
1.5K
GVP
萧明
/
knife4j
代码
Issues
248
Pull Requests
2
Wiki
统计
流水线
服务
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
app.0f2f48b5.js:1 TypeError: Cannot read property 'indexOf' of undefined
已完成
#I37X0Q
lflhjytt1
创建于
2021-02-11 08:45
- 错误信息  - 版本依赖 ``` <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> <version>3.0.2</version> </dependency> ``` - /swagger-resources ``` Request URL: http://127.0.0.1:9090/swagger-resources [ { "name": "oauth2后台接口", "url": "/lion-oauth2-console-restful/v3/api-docs", "location": "/lion-oauth2-console-restful/v3/api-docs" } ] ``` - /api-docs ``` Request URL: http://127.0.0.1:9090/lion-oauth2-console-restful/v3/api-docs { "openapi": "3.0.3", "info": { }, "servers": [ { "url": "http://127.0.0.1:9090", "description": "Inferred Url" } ], "tags": [ { "name": "oauth2客户端管理", "description": "Oauth Client Details Controller" } ], "paths": { "/oauth/client/console/add": { "post": { "tags": [ "oauth2客户端管理" ], "summary": "添加客户端", "description": "添加客户端", "operationId": "addUsingPOST", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OauthClientDetails" } } } }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData" } } } } } } }, "/oauth/client/console/check/clientId/exist": { "get": { "tags": [ "oauth2客户端管理" ], "summary": "检查客户端id是否存在", "description": "检查客户端id是否存在", "operationId": "checkClientIdExistUsingGET", "parameters": [ { "name": "clientId", "in": "query", "description": "clientId", "required": true, "style": "form", "schema": { "type": "string" } }, { "name": "id", "in": "query", "description": "修改时需要传,新增时不需要传", "required": false, "style": "form", "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData«boolean»" } } } } } } }, "/oauth/client/console/delete": { "delete": { "tags": [ "oauth2客户端管理" ], "summary": "删除客户端", "description": "删除客户端", "operationId": "deleteUsingDELETE", "parameters": [ { "name": "id", "in": "query", "description": "数组(id=1&id=2)", "required": true, "style": "form", "explode": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData" } } } } } } }, "/oauth/client/console/details": { "get": { "tags": [ "oauth2客户端管理" ], "summary": "获取详情", "description": "获取详情", "operationId": "detailsUsingGET", "parameters": [ { "name": "id", "in": "query", "description": "id", "required": true, "style": "form", "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData«OauthClientDetails»" } } } } } } }, "/oauth/client/console/list": { "get": { "tags": [ "oauth2客户端管理" ], "summary": "列表", "description": "列表", "operationId": "listUsingGET", "parameters": [ { "name": "pageNumber", "in": "query", "description": "第几页,从0开始计数", "required": false, "style": "form", "schema": { "type": "integer", "format": "int32" } }, { "name": "pageSize", "in": "query", "description": "每页数据数量", "required": false, "style": "form", "schema": { "type": "integer", "format": "int32" } }, { "name": "clientId", "in": "query", "description": "clientId", "required": false, "style": "form", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IPageResultData«List«OauthClientDetails»»" } } } } } } }, "/oauth/client/console/update": { "put": { "tags": [ "oauth2客户端管理" ], "summary": "修改客户端", "description": "修改客户端", "operationId": "updateUsingPUT", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OauthClientDetails" } } } }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData" } } } } } } } }, "components": { "schemas": { "IPageResultData«List«OauthClientDetails»»": { "title": "IPageResultData«List«OauthClientDetails»»", "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/OauthClientDetails" } }, "exceptionMessage": { "type": "string" }, "first": { "type": "boolean" }, "last": { "type": "boolean" }, "message": { "type": "string" }, "pageNumber": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "status": { "type": "integer", "format": "int32" }, "totalElements": { "type": "integer", "format": "int64" }, "totalPages": { "type": "integer", "format": "int32" } } }, "IResultData": { "title": "IResultData", "type": "object", "properties": { "data": { "type": "object" }, "exceptionMessage": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "integer", "format": "int32" } } }, "IResultData«OauthClientDetails»": { "title": "IResultData«OauthClientDetails»", "type": "object", "properties": { "data": { "$ref": "#/components/schemas/OauthClientDetails" }, "exceptionMessage": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "integer", "format": "int32" } } }, "IResultData«boolean»": { "title": "IResultData«boolean»", "type": "object", "properties": { "data": { "type": "boolean" }, "exceptionMessage": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "integer", "format": "int32" } } }, "OauthClientDetails": { "title": "OauthClientDetails", "type": "object", "properties": { "accessTokenValidity": { "type": "integer", "description": "token有效期 (不设置默认43200秒)", "format": "int32" }, "additionalInformation": { "type": "string" }, "authorities": { "type": "string" }, "authorizedGrantTypes": { "type": "string", "description": "鉴权方式(数据源参考com.lion.resource.enums.GrantTypes)" }, "autoapprove": { "type": "string" }, "clientId": { "pattern": "[A-Za-z0-9\\-]{1,256}", "type": "string", "description": "客户端id" }, "clientSecret": { "type": "string", "description": "客户端密钥" }, "clientSecretPlaintext": { "pattern": "[A-Za-z0-9\\-]{1,256}", "type": "string", "description": "客户端密钥明文(用于编辑显示)" }, "id": { "type": "integer", "description": "ID", "format": "int64" }, "refreshTokenValidity": { "type": "integer", "description": "刷新token有效期", "format": "int32" }, "resourceIds": { "pattern": "[A-Za-z0-9\\-]{0,256}", "type": "string", "description": "资源id" }, "scope": { "pattern": "[A-Za-z0-9\\,]{1,256}", "type": "string", "description": "客户端权限范围(数据源参考com.lion.resource.enums.Scope)" }, "version": { "type": "integer", "description": "版本号(修改需要传version,新增不需要传)", "format": "int64" }, "webServerRedirectUri": { "type": "string" } }, "description": "oauth2客户端信息表" } } } } ```
- 错误信息  - 版本依赖 ``` <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> <version>3.0.2</version> </dependency> ``` - /swagger-resources ``` Request URL: http://127.0.0.1:9090/swagger-resources [ { "name": "oauth2后台接口", "url": "/lion-oauth2-console-restful/v3/api-docs", "location": "/lion-oauth2-console-restful/v3/api-docs" } ] ``` - /api-docs ``` Request URL: http://127.0.0.1:9090/lion-oauth2-console-restful/v3/api-docs { "openapi": "3.0.3", "info": { }, "servers": [ { "url": "http://127.0.0.1:9090", "description": "Inferred Url" } ], "tags": [ { "name": "oauth2客户端管理", "description": "Oauth Client Details Controller" } ], "paths": { "/oauth/client/console/add": { "post": { "tags": [ "oauth2客户端管理" ], "summary": "添加客户端", "description": "添加客户端", "operationId": "addUsingPOST", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OauthClientDetails" } } } }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData" } } } } } } }, "/oauth/client/console/check/clientId/exist": { "get": { "tags": [ "oauth2客户端管理" ], "summary": "检查客户端id是否存在", "description": "检查客户端id是否存在", "operationId": "checkClientIdExistUsingGET", "parameters": [ { "name": "clientId", "in": "query", "description": "clientId", "required": true, "style": "form", "schema": { "type": "string" } }, { "name": "id", "in": "query", "description": "修改时需要传,新增时不需要传", "required": false, "style": "form", "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData«boolean»" } } } } } } }, "/oauth/client/console/delete": { "delete": { "tags": [ "oauth2客户端管理" ], "summary": "删除客户端", "description": "删除客户端", "operationId": "deleteUsingDELETE", "parameters": [ { "name": "id", "in": "query", "description": "数组(id=1&id=2)", "required": true, "style": "form", "explode": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData" } } } } } } }, "/oauth/client/console/details": { "get": { "tags": [ "oauth2客户端管理" ], "summary": "获取详情", "description": "获取详情", "operationId": "detailsUsingGET", "parameters": [ { "name": "id", "in": "query", "description": "id", "required": true, "style": "form", "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData«OauthClientDetails»" } } } } } } }, "/oauth/client/console/list": { "get": { "tags": [ "oauth2客户端管理" ], "summary": "列表", "description": "列表", "operationId": "listUsingGET", "parameters": [ { "name": "pageNumber", "in": "query", "description": "第几页,从0开始计数", "required": false, "style": "form", "schema": { "type": "integer", "format": "int32" } }, { "name": "pageSize", "in": "query", "description": "每页数据数量", "required": false, "style": "form", "schema": { "type": "integer", "format": "int32" } }, { "name": "clientId", "in": "query", "description": "clientId", "required": false, "style": "form", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IPageResultData«List«OauthClientDetails»»" } } } } } } }, "/oauth/client/console/update": { "put": { "tags": [ "oauth2客户端管理" ], "summary": "修改客户端", "description": "修改客户端", "operationId": "updateUsingPUT", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OauthClientDetails" } } } }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/IResultData" } } } } } } } }, "components": { "schemas": { "IPageResultData«List«OauthClientDetails»»": { "title": "IPageResultData«List«OauthClientDetails»»", "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/OauthClientDetails" } }, "exceptionMessage": { "type": "string" }, "first": { "type": "boolean" }, "last": { "type": "boolean" }, "message": { "type": "string" }, "pageNumber": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "status": { "type": "integer", "format": "int32" }, "totalElements": { "type": "integer", "format": "int64" }, "totalPages": { "type": "integer", "format": "int32" } } }, "IResultData": { "title": "IResultData", "type": "object", "properties": { "data": { "type": "object" }, "exceptionMessage": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "integer", "format": "int32" } } }, "IResultData«OauthClientDetails»": { "title": "IResultData«OauthClientDetails»", "type": "object", "properties": { "data": { "$ref": "#/components/schemas/OauthClientDetails" }, "exceptionMessage": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "integer", "format": "int32" } } }, "IResultData«boolean»": { "title": "IResultData«boolean»", "type": "object", "properties": { "data": { "type": "boolean" }, "exceptionMessage": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "integer", "format": "int32" } } }, "OauthClientDetails": { "title": "OauthClientDetails", "type": "object", "properties": { "accessTokenValidity": { "type": "integer", "description": "token有效期 (不设置默认43200秒)", "format": "int32" }, "additionalInformation": { "type": "string" }, "authorities": { "type": "string" }, "authorizedGrantTypes": { "type": "string", "description": "鉴权方式(数据源参考com.lion.resource.enums.GrantTypes)" }, "autoapprove": { "type": "string" }, "clientId": { "pattern": "[A-Za-z0-9\\-]{1,256}", "type": "string", "description": "客户端id" }, "clientSecret": { "type": "string", "description": "客户端密钥" }, "clientSecretPlaintext": { "pattern": "[A-Za-z0-9\\-]{1,256}", "type": "string", "description": "客户端密钥明文(用于编辑显示)" }, "id": { "type": "integer", "description": "ID", "format": "int64" }, "refreshTokenValidity": { "type": "integer", "description": "刷新token有效期", "format": "int32" }, "resourceIds": { "pattern": "[A-Za-z0-9\\-]{0,256}", "type": "string", "description": "资源id" }, "scope": { "pattern": "[A-Za-z0-9\\,]{1,256}", "type": "string", "description": "客户端权限范围(数据源参考com.lion.resource.enums.Scope)" }, "version": { "type": "integer", "description": "版本号(修改需要传version,新增不需要传)", "format": "int64" }, "webServerRedirectUri": { "type": "string" } }, "description": "oauth2客户端信息表" } } } } ```
评论 (
0
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已关闭
负责人
未设置
标签
enhancement
bug
未设置
标签管理
里程碑
Knife4j 2.0.9版本
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
Java
1
https://gitee.com/xiaoym/knife4j.git
git@gitee.com:xiaoym/knife4j.git
xiaoym
knife4j
knife4j
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册