利用eclipse新建的java web项目没有部署描述符web.xml文件怎么办?
利用eclipse新建的java web项目没有部署描述符web.xml文件怎么办?
解决办法:
1、右键项目名称-》Java EE Tools-》Generate Deployment descriptor stub
即可生成web.xml文件。
或者
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>
posted on 2018-07-14 00:47 chengjunde 阅读(219) 评论(0) 收藏 举报
 
                    
                 
                
            
         
 浙公网安备 33010602011771号
浙公网安备 33010602011771号