How to Disable Swagger In Production | Springdoc Open Api | Profiling In SpringBoot

Опубликовано: 14 Январь 2025
на канале: KB Tutorials
3,254
20

In this video we will learn how to disable swagger using profiling in spring boot.we will learn how to enable swagger in dev and disable in prod using profiles in spring boot.There are 3 profiles available in spring boot.application-dev.properties,application-test.properties and application-prod.properties. We can make active profile using spring.active.profile.
And we can swagger with springdoc.swagger-ui.enabled =true
and we can disable swagger using springdoc.swagger-ui.enabled =false

#SwaggerInSpringBoot,#SpringBootTutorials,#springdocopenApi

Join this channel to get access to perks:
   / @karthikbethi