PROBLEM I use Spring Rest Docs in my project. It is useful at development stage, but i don’t want it to be available for ordinary users and search engines in production.

RESEARCH I see no robot meta tags with content like "nocache" & "noindex". What is expected actually is maybe a spring application.property field like

. So that I can configure it in production spring profile.

QUESTION How to disable rest docs for some spring profiles.

Anonymous Asked question May 13, 2021