Deploying just HTML, CSS webpage to Tomcat

后端 未结 4 973
醉梦人生
醉梦人生 2020-11-28 02:02

I am just getting started on developing a website. All I have at the moment is a HTML page supported by a couple of CSS stylesheets

4条回答
  •  有刺的猬
    2020-11-28 02:36

    There is no real need to create a war to run it from Tomcat. You can follow these steps

    1. Create a folder in webapps folder e.g. MyApp

    2. Put your html and css in that folder and name the html file, which you want to be the starting page for your application, index.html

    3. Start tomcat and point your browser to url "http://localhost:8080/MyApp". Your index.html page will pop up in the browser

提交回复
热议问题