How to process pages using spring MVC

Does anyone have experience with a maintenance page using spring MVC? What I am doing now is one shell script that copies index.html and css to the root folder of the web application, and when they are done with copying the maintanence site, is displayed.

At the same time, I am making changes. I delete the classes and load the new ones, and then delete the html and css files, and everything returns to normal. This works on the tomcat server, but when I tried this on the jboss server, I get a 404 page that tries to point to index.jsp, which naturally does not exist.

Is there any way to handle this more elegantly? I am sure that maybe someone will share their experience with this? thank

+5
source share
2 answers

Host an Apache HTTPD server that uses the Tomcat Connector (als, known as mod_jk) to delegate Tomcat / JBoss requests. Configure the Apache HTTP address to display the service page as a 404/503 error page.

+3
source

take a look at this - a completely software solution:

Spring-MVC Interceptors

+1
source

All Articles