diff --git a/spring-web-lab/README.md b/spring-web-lab/README.md index de52b55..c6d4d55 100644 --- a/spring-web-lab/README.md +++ b/spring-web-lab/README.md @@ -3,5 +3,6 @@ ## Sources ๐Ÿ”— * [Java Senior Quiz ๐Ÿงฉ](https://youtube.com/playlist?list=PLO5muTI694A5yRrEDNY1czqEUVbYHG_AH&si=KteWFowVcOSTQ8F-) -* [Action Jackson! Effective JSON processing in Spring Boot Applications by Joris Kuipers @ Spring I/O](https://youtu.be/BhiF6e24l5k?si=IxS0X6FtgfWzdP-c) -* [Spring Boot testing: Zero to Hero by Daniel Garnier-Moiroux](https://youtu.be/u5foQULTxHM?si=WPZKUZY-DMqcHGdG) \ No newline at end of file +* [Action Jackson ๐ŸŽฌ! Effective JSON processing in Spring Boot Applications by Joris Kuipers @ Spring I/O](https://youtu.be/BhiF6e24l5k?si=IxS0X6FtgfWzdP-c) +* [Spring Boot testing ๐Ÿงช: Zero to Hero by Daniel Garnier-Moiroux](https://youtu.be/u5foQULTxHM?si=WPZKUZY-DMqcHGdG) +* [OpenAPI 3 and Spring-Boot 3 ๐Ÿ—ƒ๏ธ - What's new? by Badr Nass Lahsen @ Spring I/O 2024](https://youtu.be/ondlnm5ZoFM?si=OJCYZutF-IC_IlFx) \ No newline at end of file diff --git a/spring-web-lab/pom.xml b/spring-web-lab/pom.xml index 3db1ca5..3c620c9 100644 --- a/spring-web-lab/pom.xml +++ b/spring-web-lab/pom.xml @@ -26,6 +26,11 @@ org.springframework.boot spring-boot-starter-actuator + + org.springdoc + springdoc-openapi-starter-webmvc-ui + 2.8.5 + \ No newline at end of file diff --git a/spring-web-lab/src/main/resources/application.yml b/spring-web-lab/src/main/resources/application.yml index b6c381d..046a23c 100644 --- a/spring-web-lab/src/main/resources/application.yml +++ b/spring-web-lab/src/main/resources/application.yml @@ -10,4 +10,10 @@ #spring: # jackson: -# default-property-inclusion: NON_NULL \ No newline at end of file +# default-property-inclusion: NON_NULL + +# Swagger-ui custom path (http://localhost:8080/swagger-ui/index.html) +springdoc: + swagger-ui: + use-root-path: true + display-request-duration: true \ No newline at end of file