IntelliJ IDEA创建web项目,并部署到tomcat上

step1.创建Java web项目
step2.在web/WEB-INF下新建classes和lib目录(New—>Directory)
step3. File->Project Structure->Modules->Paths,修改Output path和Test output path为classes的路径
step4.再点旁边的Dependencies->点击"+"号->选择1 JARs or directories -> 选择lib文件->选择“jar Directory”
step5.Run->选择Edit Configurations->Deployment
step6.index.jsp和web.xml

index.jsp:


  
    Hello World!
  
  
  

Hello World!

web.xml可以添加:

    
        aaa.jsp
        index.jsp
    

你可能感兴趣的:(IntelliJ IDEA创建web项目,并部署到tomcat上)