web.xml is missing and is set to true

后端 未结 20 1337
后悔当初
后悔当初 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:52

    Eclipse recognizes incorrect default webapp directory. Therefore we should set clearly it by maven-war-plugin.

    
      
        
          org.apache.maven.plugins
          maven-war-plugin
          3.0.0
          
            src/main/webapp
          
        
      
    
    

    Once saving this setting, the error will never occour if removed it. (I cannot explain why.)

提交回复
热议问题