【问题标题】:How to edit css/html of Swagger UI page? (Spring boot)How to edit css/html of Swagger UI page? (Spring boot)
【发布时间】:2022-12-02 06:36:39
【问题描述】:

Hi I am new to Swagger and Spring. I want to know how can I edit the swagger-ui.html page. I am using Pojo files to provide information related to parameters. What can I do to make this look better and proper? The reason I think this is happening is because I have used many Objects inside many objects. My assumption is, this should be solved using html and css but are getting it from @EnableWeMvc, so can't be edited.

【问题讨论】:

  • Do you use Springfox or Springdoc?

标签: spring spring-boot swagger swagger-ui swagger-2.0


【解决方案1】:

Assuming springdoc there is a documentation part for you: https://springdoc.org/#customizing-swagger-static-resources

You can customize swagger documentation static resources located in META-INF/resources/webjars/swagger-ui/{swagger.version}/. The list of resources includes: ... swagger-ui.css

And there is a code sn-p.

【讨论】:

    猜你喜欢
    • 2022-12-27
    • 2022-12-02
    • 2022-12-01
    • 2022-12-02
    • 1970-01-01
    • 2022-12-27
    • 2023-02-01
    • 2023-01-04
    • 2022-12-01
    相关资源
    最近更新 更多