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
I got the same problem, but after looking at the code closely, I found that my IDE was showing the error mark on the wrong line of code while the problem was arising because of an extra angular-bracket.