一.创建JavaWeb
1.第一步
点击左上角的File-->New-->Project
2.第二步
1.找到Java Enterprise之后,在Application Sever中找到自己的Tomcat,同时勾选中Web Application
2.第一项是你的工程名字,随便取啦,第二个是你的工程路径,选择好之后点击finish
3.重新编写index.jsp文件
<%-- Created by IntelliJ IDEA. User: admin Date: 2020/2/29 Time: 17:52 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Hello First Web</title> </head> <body> <a href="//www.baidu.com" rel="author">第一个动态Web </a> </body> </html> |
4.完成点击运行