remove SwaggerConfig

main
Vks 3 months ago
parent 064bf4c781
commit 94cd912f93

@ -1,15 +0,0 @@
package com.cyberlanting.Assignments.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class SwaggerConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/swagger-ui/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/springdoc-openapi-ui/")
.resourceChain(false);
}
}

@ -2,10 +2,10 @@ spring:
application:
name: Assignments
springdoc:
api-docs:
enable: true
path: /v3/api-docs
swagger-ui:
enable: true
path: /swagger-ui.html
#springdoc:
# api-docs:
# enable: true
# path: /v3/api-docs
# swagger-ui:
# enable: true
# path: /swagger-ui.html

Loading…
Cancel
Save