一、创建并设置javaweb工程
1)创建Web Application
2)编写ServletTest程序
3)配置web.xml文件
二、Tomcat配置
4)File—–>Settings—–>
5)Edit Configurations
——Tomcat路径
—–Server配置
—–Deployment配置
三、运行
—–在地址栏输入http://localhost:8081/test