How to Configure Tomcat with Intellij.ppt

上传人:孙刚 文档编号:376419 上传时间:2018-10-08 格式:PPT 页数:14 大小:576.50KB
下载 相关 举报
How to Configure Tomcat with Intellij.ppt_第1页
第1页 / 共14页
How to Configure Tomcat with Intellij.ppt_第2页
第2页 / 共14页
How to Configure Tomcat with Intellij.ppt_第3页
第3页 / 共14页
How to Configure Tomcat with Intellij.ppt_第4页
第4页 / 共14页
How to Configure Tomcat with Intellij.ppt_第5页
第5页 / 共14页
亲,该文档总共14页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、How to Configure Tomcat with Intellij,By: Navjot S.Sandhu SW410 Enterprise Java Prof. Lyon,Download Tomcat,Download Application server from www.apache.org Make sure to set the appropriate Java Virtual Machine,Create a New Project in IntelliJ,Click File, then New Project Create from Scratch Click Nex

2、t, give the Project a Name, and keep Clicking Next until the Desired Technologies window is in front of you Click Web-Application, then Finish,Configure an Application Server in IntelliJ,Click File, then Settings Click on Application Servers and Hit the + to add a new Tomcat Server Set the Home Dire

3、ctory of the application server you have just installed(ex: c:/Program Files/Apache Software Foundation/ and then Click ok,Create New Class File(servlet),Configure Application Server,Click on the run button, and then then Edit Defaults Click on the + in the top left hand corner and add a Tomcat Serv

4、er, then Local configuration Select the Tomcat in the pulldown menu next to Application Server,Configure App Server(cont.),Configuration(cont.),Click on Deployment, WebFacets, and then the Web(inservlet) node and make sure the Deploy Web Facet radio button is checked Click on Configure and make sure

5、 the Web Deployment is configured correctly,Configuration(cont.),Configuration(cont.),Configure XML FIle,Configure the web.xml file in the WEB-INF directory with the servlet class file name and directory, in this case we are going to place the class file in the root classes directory,Xml File(cont.)

6、,We have to add one of these for every class file,The Servlet Class,Make sure to import the right classes and set the HTML output,Compile and Run,Make sure to add the name of the Servlet, after Http:/localhost:8080/servlet1 in the startup page parameter of the run screen Now we have an application server built into our development environement COOL!,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 教学课件 > 大学教育

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1