【问题标题】:spring-boot-actuator-docs overrides spring-boot-rest-docs outputspring-boot-actuator-docs 覆盖 spring-boot-rest-docs 输出
【发布时间】:2016-11-14 16:42:16
【问题描述】:

我正在使用 spring-boot-rest-docs 生成 API 文档,我想从该文档链接到 spring-boot-actuator-docs 提供的文档以完成我的服务的可用端点文档。

问题是,当我在 org.springframework.boot:spring-boot-actuator-docs 上包含推荐的运行时依赖项时,它会用执行器文档覆盖我的 /docs/index.html 运行时端点。

是否可以将执行器文档配置为显示在不同的 URI 中,以便我可以从我自己的服务的 asciidoc 文档中超链接到它?

【问题讨论】:

    标签: spring-boot spring-boot-actuator spring-restdocs


    【解决方案1】:

    application.properties

    endpoints.docs.path=/docs
    

    【讨论】:

    • 好春天,那里一定有房子
    【解决方案2】:

    更改文档 ID

    endpoints.docs.id=your-new-id

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-02-23
      • 2015-05-01
      • 1970-01-01
      • 2015-04-07
      • 1970-01-01
      • 1970-01-01
      • 2016-06-19
      相关资源
      最近更新 更多