Circular view path [login]: would dispatch back to the current handler URL [XXXX] again.报错

Circular view path [login]: would dispatch back to the current handler URL [/Fas/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

解决办法:
你的@requestMapping(value="/login")可能与下面的重名,你只需要改掉这个名字就ok

只要我们的path不是"/login"就ok,同样可以改view的名字。

你可能感兴趣的:(报错)