I\'m working on a spring boot application using swagger to generate docs for my API ,I\'m using Spring data rest to generate the Api but when I run the app I get the swagger
pom.xml
org.springframework.boot
spring-boot-starter-parent
2.2.2.RELEASE
UTF-8
UTF-8
1.8
3.0.0-SNAPSHOT
io.springfox
springfox-swagger2
${swagger}
io.springfox
springfox-swagger-ui
${swagger}
io.springfox
springfox-data-rest
${swagger}
application.yaml
spring:
data:
rest:
base-path: /v1
java config
@Configuration
@EnableSwagger2WebMvc
@Import(SpringDataRestConfiguration.class)
public class SwaggerConfig