IntelliJ IDEA創建java web項目(1)

一、項目創建步驟
1.創建新工程
在這裏插入圖片描述
2.配置tomcat
在這裏插入圖片描述
3.IDEA配置tomcat直接發佈項目
在這裏插入圖片描述
在這裏插入圖片描述
2.index.jsp文件修改

<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/6/20
  Time: 21:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>java web</title>
  </head>
  <body>
  <h1>title 1</h1>
  <h2>title 2</h2>
  <h3>title 3</h3>
  <h4>title 4</h4>
  </body>
</html>

二、效果圖
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章