启动tomcat,输入http://localhost:8080/,默认会指定到apache-tomcat-6.0.29/webapps/ROOT/index.html这个页面。也就是tomcat的首页。我们知道tomcat的下发布的网站都存放在webapps中。我们如果在webapps文件夹下创建一个helloworld.jps文件,然后通过http://localhost:8080/jsp 来访问会提示错误。但是我们在webapps文件夹下在创建一个目录test,然后将helloworld.jsp文件放入test目录下。这时候我们通过http://localhost:8080/test/helloworld.jsp 就能访问该jsp页面了。

相关文章:

  • 2021-04-05
  • 2022-12-23
  • 2021-08-26
  • 2021-12-10
  • 2021-08-10
  • 2021-07-31
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案