Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-546

while using maven to create a new web project,the web.xml file maven generated can not be recognised by spring mvc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.1
    • None
    • Archetypes
    • None
    • Important

    Description

      when using eclipse & maven & spring & springMVC as development inviroment,we create a new web project,maven generates web.xml  cannot  be parsed by springMVC,while we debug the project,springmvc logs the messages,no handler was found for [url],no mapping was found for controller, and every time we create a new web project with maven, the problem happpens again, and ervey time we should copy a new web.xml file from somewhere else;

       

      the first picture is the wrong web.xml head generated by maven and the second picture is right one we copy from somewhere else

      Attachments

        1. image-2018-04-09-00-21-39-534.png
          251 kB
          jinyong zhang
        2. image-2018-04-09-00-20-50-573.png
          340 kB
          jinyong zhang

        Activity

          People

            Unassigned Unassigned
            miracllife jinyong zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: