Hot to deploy tomcat/webapps folder form IntellijIDEA

后端 未结 2 1783
时光取名叫无心
时光取名叫无心 2021-01-24 14:40

I am testing a web application(Apache Wicket Based) via IntellijIDEA Tomcat integration. There I noticed that the webapp consider its running in bin folder of the tomcat. Also w

2条回答
  •  生来不讨喜
    2021-01-24 15:06

    In IntelliJ (I'm using Ultimate 2017), the context directory is set through File > Project Structure. Under the Web Resource Directories list, IntelliJ had filled in a path ending with /webapp by default, which didn't exist and was in red. I changed that to the folder enclosing my root-level index.jsp. After a rebuild, my JSPs were rendering and the CSS and JS (stored in the same tree as the JSPs) were loading perfectly.

提交回复
热议问题