我们可以在Eclipse中新建一个Dynamic Web Project,然后在项目的WebContent目录下新建一个Html文件page1.html,其内容如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>page1</title>
</head>
<body>
A Normal Html Page!
</body>
</html>

启动服务器。在http://localhost:8080/WebProject/page1.html下可以看到网页效果如下:

Java Web项目--显示一个静态页面

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-04-08
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2022-01-21
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
相关资源
相似解决方案