Tomcat入门之helloWorld

安装好Tomcat后,进入其文件夹->webapps->ROOT

新建一个txt文件,命名helloWorld,打开,在里面输入

<html>
<body>
<center>
Hello World
</center>
</body>
</html>

保存,将后缀改为jsp,打开Tomcat,打开浏览器,输入网址

http://localhost:8080/helloWorld.jsp

就会显示Hello World

猜你喜欢

转载自blog.csdn.net/qq_30684235/article/details/88140544
今日推荐