tangcent / easy-yapi

Generate API document to yapi
https://easyyapi.com
GNU Affero General Public License v3.0
425 stars 141 forks source link

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

Open hapeman0314 opened 5 months ago

hapeman0314 commented 5 months ago

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

hapeman0314 commented 5 months ago

插件版本:2.6.8.212.0 idea版本:2023.2.3

tangcent commented 5 months ago

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

api.class.parse.before=groovy:logger.info("doc.source.disable:"+config.get("doc.source.disable"))
hapeman0314 commented 5 months ago

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

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

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

hapeman0314 commented 5 months ago

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

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

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