How to Deploy to Intellij IDEA Tomcat Folder?

后端 未结 3 1977
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 18:38

I use Intellij IDEA 11.1.2 Ultimate Edition. I run Tomcat 6 from Intellij IDEA. Beside my .war application I have another folder that has static HTML files. When I run tomcat ma

3条回答
  •  我寻月下人不归
    2021-02-13 18:57

    I think that CrazyCoder's answer is a little bit better. But here is my solution.

    • Go to File -> Project Structure...
    • Select your Web facet
    • In section Web resource directories click to +
    • Web resource directory path is your static content
    • Relative path in deployment directory is where you want to find it in your application war

    Project structure

提交回复
热议问题