I'll do some database upgrade. I wanted to show a maintenance page to all the user who visit my app when upgrade is going on. I wanted to show Maintenance message in all routes.
Is there a hook to redirect all request to Maintenance page template in spring boot avoiding all the controllers? So that no matter where my user go they will see this Maintenance page.
I couldn't find any resource. Any clue will be much appreciated.
This looks like a problem that can be solved by a javax.servlet.Filter. You can intercept all requests to *.html and forward or redirect to “maintenance.html”