idea to import and deploy the Tomcat web project

Open idea, click File - "Open, select the file you want to import and click OK to open, then pop up a window with the version of jdk, to close;

  1, the configuration jdk version

    Click Project Structure icon

    

 

 

     Configuration jdk version installed on your computer

    

  2, configuration items structure

    Click Project Settings -> Modules

 

 

 

 

   3, was added in a jar Tomcat

 

 

     After successfully added Click Apply

  

 

 

 

  4. Add a Web module

    Click Facets -> Web

      

 

 

   Select your current project, click OK

      

 

 

   Add your project web folder

       

 

 

   Click Apply - "OK to complete

    

 

 

   Check if added successfully

    

 

 

   5, configure Tomcat

    Run-->Edit Configurations

      

 

 

     Find Tomcat Server, click Local

      

 

 

   Select Tomact version

      

 

 

   Select Artifacts

      

 

 

   选择Web Application:Exploded--》From Modules

       

 

 

   Click OK

       

 

 

   Is there something under examination output root, the following steps have ignored, not to add

      

 

 

   

 

   Add Module Output point output module

    

 

   If you have the following two files Click OK to the next step

         

 

   If there appears to explain the success of the war exploded, click Apply - "OK done!

        

 

   Check for the following icon, and no red cross, you can run the Tomcat server

        

 

   6, open the jsp file, not error on the success of friends

    

 

 About jsp file can not be opened, prompting Please, configure Web Facet first!

    

 

 

  Click on the link https://blog.csdn.net/malz_zh/article/details/85098356 , people writing solution

  

 

Guess you like

Origin www.cnblogs.com/zeng1997/p/11571574.html