Difference between web projects with pom.xml and web.xml

后端 未结 6 1548
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 22:07

What is the difference between Java projects having pom.xml and web.xml? Can projects have both these configurations at the same time?

6条回答
  •  误落风尘
    2021-01-31 22:44

    web.xml is an indicator that the project is running in some kind of servlet container (possibly even a full-fledged Java EE container).

    pom.xml is an indicator that the project is built using the Maven build system.

    Those two things are entirely orthogonal, so any given project can have none, one or both of them.

提交回复
热议问题