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

后端 未结 6 1463
被撕碎了的回忆
被撕碎了的回忆 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:57

    The two files have nothing to do with each other.

    • pom.xml - Maven configuration file. Controls the build process for the project
    • web.xml - Web application configuration file. Controls the deployment and configuration of the web application

    The POM file really shouldn't be deployed with the application, its just for the build process.

提交回复
热议问题