开发者

when setting up a web app in IDEA, can someone help me with Facets/Modules and Artifacts

using IDEA ultimate, how would I start a project and have the following layout:

/src/
/src/main/java/com/example/myapp
/src/main/resources
/src/main/webapp
/src/main/webapp/META-INF
/src/main/webapp/WEB-INF
/src/main/webapp/WEB-INF/jsp
/src/main/webapp/WEB-INF/lib
/src/main/webapp/WEB-INF/myapp-servlet.xml
/src/main/webapp/WEB-INF/web.xml

So from what I understand, once this is setup开发者_高级运维 I have to now somehow wire things using Modules/Artifacts/Facets.

I have JDK and tomcat setup.

I just don't know how to wire things up, so when I hit RUN it will build, deploy the app.


The best way to start creating a web project in Idea is to use either a maven project (any project with valid pom.xml and by your folder structure I guess thats what you are trying to do) Or create a project and add a web module (a module with web facet). Artifacts are like your build artifacts, your wars, jars and such things. Modules are sub projects or logical division of your main projects like common module, services, web module in a main project. Facets gives your some extra features like spring auto completion. It tells the IDE that your module is using so and so technology...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜