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

[Question] swagger中的@Api不生效 #1099

Open
hapeman0314 opened this issue Jan 22, 2024 · 4 comments
Open

[Question] swagger中的@Api不生效 #1099

hapeman0314 opened this issue Jan 22, 2024 · 4 comments
Labels
type: question&discussion Further information is requested

Comments

@hapeman0314
Copy link

在配置文件中已经配置了doc.source.disable=true
使用插件生成YAPI文档的时候分类名仍使用注释

@hapeman0314 hapeman0314 added the type: question&discussion Further information is requested label Jan 22, 2024
@hapeman0314
Copy link
Author

插件版本:2.6.8.212.0
idea版本:2023.2.3

@tangcent
Copy link
Owner

我试了一下,注释被正确屏蔽了。
你试试再加这个日志,看看配置有没有生效。

api.class.parse.before=groovy:logger.info("doc.source.disable:"+config.get("doc.source.disable"))

@hapeman0314
Copy link
Author

我试了一下,注释被正确屏蔽了。 你试试再加这个日志,看看配置有没有生效。

api.class.parse.before=groovy:logger.info("doc.source.disable:"+config.get("doc.source.disable"))

一个是添加header的配置,这个配置正确生效了,但是屏蔽注释的没有。
明天试一下你说的这个

@hapeman0314
Copy link
Author

我试了一下,注释被正确屏蔽了。 你试试再加这个日志,看看配置有没有生效。

api.class.parse.before=groovy:logger.info("doc.source.disable:"+config.get("doc.source.disable"))

[INFO] doc.source.disable:true
配置生效了,但是没有正确运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question&discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants