parent
e16dd37a56
commit
064bf4c781
@ -1,6 +0,0 @@
|
||||
package com.cyberlanting.Assignments.config;
|
||||
|
||||
public class Swagger2Config {
|
||||
|
||||
private ApiInfo admian
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
@ -1,3 +1,11 @@
|
||||
spring:
|
||||
application:
|
||||
name: Assignments
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
enable: true
|
||||
path: /v3/api-docs
|
||||
swagger-ui:
|
||||
enable: true
|
||||
path: /swagger-ui.html
|
||||
|
Loading…
Reference in new issue