Springs Element 'beans' cannot have character [children], because the type's content type is element-only

前端 未结 14 1635
北恋
北恋 2021-02-18 13:17

I search some page in stackoverflow to solve this problem, did follow some true answer but not working. I am new in spring , sorry. here is my dispatcher-servlet



        
14条回答
  •  暖寄归人
    2021-02-18 13:54

    Follow the below steps outlined and you should be able to resolve it :

    1. Try to open the xml in Internet Explorer or any xml view tool and see whether the xml is rendered properly.
    2. Or you can do a ctrl + shift + F to format the xml file and see if xml is well formed or not.
    3. With the above step you should be able to find the exact location where you need to make changes to make the xml well formed.
    4. In my case I had to just remove the extra "<" closing tag to resolve the issue.

提交回复
热议问题