1@Override
2public void addResourceHandlers(ResourceHandlerRegistry registry) {
3 registry.addResourceHandler("swagger-ui.html")
4 .addResourceLocations("classpath:/META-INF/resources/");
5
6 registry.addResourceHandler("/webjars/**")
7 .addResourceLocations("classpath:/META-INF/resources/webjars/");
8}
1<!-- Spring Fox Dependencies -->
2<dependency>
3 <groupId>io.springfox</groupId>
4 <artifactId>springfox-swagger2</artifactId>
5 <version>2.9.2</version>
6</dependency>
7<dependency>
8 <groupId>io.springfox</groupId>
9 <artifactId>springfox-swagger-ui</artifactId>
10 <version>2.9.2</version>
11</dependency>