Created
July 10, 2021 15:13
-
-
Save evrentan/2bd3eeee1485959aba35c036a4025f62 to your computer and use it in GitHub Desktop.
Add Resource Handlers for SwaggerConfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void addResourceHandlers(ResourceHandlerRegistry registry) { | |
registry.addResourceHandler("swagger-ui.html") | |
.addResourceLocations("classpath:/META-INF/resources/"); | |
registry.addResourceHandler("/webjars/**") | |
.addResourceLocations("classpath:/META-INF/resources/webjars/"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment