Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

springboot3 版本swagger无法使用 #5908

Closed
Ez2AcXz opened this issue Feb 22, 2024 · 6 comments
Closed

springboot3 版本swagger无法使用 #5908

Ez2AcXz opened this issue Feb 22, 2024 · 6 comments

Comments

@Ez2AcXz
Copy link

Ez2AcXz commented Feb 22, 2024

版本号:

3.6.2

前端版本:vue3版?还是 vue2版?

vue3

问题描述:

3.6.2的springboot3分支 swagger无法使用

截图&代码:

微信截图_20240222101903

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@Ez2AcXz
Copy link
Author

Ez2AcXz commented Feb 22, 2024

有人捞一下嘛,对比swagger2的配置明显少了很多内容

@EightMonth
Copy link
Contributor

EightMonth commented Feb 23, 2024

未能复现该问题,请更新代码,并根据文档启动后重新尝试
image
image

@Ez2AcXz
Copy link
Author

Ez2AcXz commented Feb 23, 2024

代码是直接克隆下来的,发现是swagger3在初始请求路径里少了/jeecg-boot 这个路径
微信截图_20240223152627

@EightMonth
Copy link
Contributor

EightMonth commented Feb 23, 2024

怀疑可能是缓存的问题,你要不执行一下mvn clean package 试试呢,然后用无痕模式访问该页面,我也是clone的最新的代码,并没有出现这个问题

@Ez2AcXz
Copy link
Author

Ez2AcXz commented Feb 26, 2024

我刚才把缓存全都清了一遍好像还是不行,swagger3的basePath就是一个"/"。是springboot3分支哦不是springboot3_sas 用的java17。还有online表单开发的“从数据库导入表单” 查询失败。但是用主分支就是好的
1

@EightMonth
Copy link
Contributor

不太清楚你问题的原因,我今天从github clone下来的代码,也并未复现你的这个问题
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants