5
properties配置文件不显示自定义文档菜单
source link: https://www.oschina.net/question/3421509_2323513
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
properties配置文件不显示自定义文档菜单
springboot版本为 2.2.6.RELEASE
knife4j-spring-boot-starter版本为 2.0.9
问题:配置文件使用application.yml 自定义文档显示无误,但使用applicaition.properties格式的配置文件不显示自定义文档菜单;具体配置如下:
knife4j: enable: true documents: - group: 1.0版本 name: 接口对接说明(对接及示例) # 某一个文件夹下所有的.md文件 locations: classpath:markdown/* setting: enableOpenApi: false enableAfterScript: false enableSwaggerModels: false
propeties:
knife4j.enable=true knife4j.documents[0].group=1.0版本 knife4j.documents[0].name=接口对接说明(对接及示例) knife4j.documents[0].locations=classpath:markdown/* knife4j.setting.enableOpenApi=false knife4j.setting.enableAfterScript=false knife4j.setting.enableSwaggerModels=false
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK