Questions about the project after the completion of the deployment, jsp page can not be displayed normal

    Today, both encountered a funny but very easy to ignore the problem, first of all look at the problem screenshots:

    

 

 

    Why, after the deployment of the server is properly completed, the project jsp page can not display it?

 

 

    Solution:

      The possibility of 1: Jsp file filename error , or file name suffix does not add .jsp

      Possibility 2: When you do not specify a specific folder with a controller, jsp files by default is to put WebRoot folder, this folder is the root directory of tomcat server

       

      Possibility 3: That's why I'm wrong. It is web.xml configuration file in, <the servlet> </ the servlet> tag <servlet-name> </ servlet -name> content, and must be <servlet-mapping> </ servlet -mapping> tag < servlet-name> </ servlet- name> content consistent

 

      

      

      Rough thought for a moment, just think of these three possibilities, please add!

 

 

 

 

    

 

 

Guess you like

Origin www.cnblogs.com/javaisbest/p/11901710.html