You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jinyong zhang (JIRA)" <ji...@apache.org> on 2018/04/08 16:23:00 UTC

[jira] [Created] (ARCHETYPE-546) 使用maven构建web项目时,maven自动生成的web.xml格式问题

jinyong zhang created ARCHETYPE-546:
---------------------------------------

             Summary: 使用maven构建web项目时,maven自动生成的web.xml格式问题
                 Key: ARCHETYPE-546
                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-546
             Project: Maven Archetype
          Issue Type: Bug
          Components: Archetypes
    Affects Versions: 3.0.1
            Reporter: jinyong zhang
         Attachments: image-2018-04-09-00-20-50-573.png, image-2018-04-09-00-21-39-534.png

使用eclipse+maven+spring+springMVC, 在构建新项目时,maven生成的web.xml无法被springMVC识别,导致项目运行后,springmvc会报找不到handler ,找不到mapping,

需要自己重新创建web.xml

!image-2018-04-09-00-20-50-573.png!

上边这个是maven自动生成的web.xml的头,

!image-2018-04-09-00-21-39-534.png!

这个是sprimgMVC能识别的web.xml的文件头



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)