2

During startup, we need to do some adjustments for the application. We want to make REST API temporarily unavailable to be sure that there will be no concurrent updates. After adjustment is done, we would like to enable REST API and start serving requests. Is it possible to disable temporary REST API in Spring Boot?

5
  • You might look into stackoverflow.com/questions/29958231/… or (togglz.org) if you would like to do this on demand. Commented Mar 5, 2021 at 10:17
  • 1
    In this case, we would need to add @ConditionalOnExpression annotation to each REST endpoint and also it won't allow us to enable/disable them in runtime. Commented Mar 5, 2021 at 10:29
  • Which deployment env do you use? Commented Mar 7, 2021 at 21:23
  • Didn't get the question. I need it for all envs Commented Mar 8, 2021 at 16:43
  • @Sydorov found any thing ? searching for the same..! Commented Sep 7, 2022 at 12:40

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.