Сообщения

Сообщения за июнь, 2020

swagger openapi with spring security

pom.xml:    <dependency>             <groupId>org.springdoc</groupId>             <artifactId>springdoc-openapi-ui</artifactId>             <version>1.3.9</version>         </dependency>         <dependency>             <groupId>org.springdoc</groupId>             <artifactId>springdoc-openapi-security</artifactId>             <version>1.4.0</version>         </dependency> properties:  springdoc:     swagger-ui:         path: /swagger-ui.html     api-docs:         enabled: true         path: /v3/api-docs then go to the url:  http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs and explore http://localhost:8080/v3/api-docs  doc:  https://springdoc.org/faq.html

clear flyway migration on each junit test

@TestExecutionListeners({DependencyInjectionTestExecutionListener.class, FlywayTestExecutionListener.class}) on test class and on every test @FlywayTest https://mvnrepository.com/artifact/org.flywaydb.flyway-test-extensions/flyway-spring-test src: https://stackoverflow.com/a/41929489/2910338