web.xml is missing and is set to true

后端 未结 20 1369
后悔当初
后悔当初 2020-11-30 17:35

Consider:

When I create a simple Maven project in Eclipse I am getting this error:

web.xml is missing and

20条回答
  •  一个人的身影
    2020-11-30 17:51

    It doesn't make sense to create a web.xml just elcipse wants it, even there is no need. This is the case if you have servlet conatiner embedded or living without xml cfg like spring-boot does. The you just diable JavaEE (useless stuff) in eclipse on project level or global

    Eclipse/STS>Windows>Preferences>JavaEE>Doclet>Webdoclet> "uncheck" DeploymentDescriptor > OK
    

提交回复
热议问题