Skip to content

集成swagger的时候swagger-ui访问会出问题 #90

@redpold

Description

@redpold

访问/swagger-ui.html的时候会报 404 应该是静态资源访问的问题
配置swagger的时候重新设置下静态资源路径可以解决
但是不知道在project中哪里修改了静态资源访问路径

@Override  
public void addResourceHandlers(ResourceHandlerRegistry registry)
{ 
   registry.addResourceHandler("/**")
   .addResourceLocations("classpath:/META-INF/resources/")
   .setCachePeriod(0);  
}  

期待在此project中直接整合swagger2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions