Why does the project deployed on tomcat always say that there are too many redirects when visiting?

Why does the project deployed on tomcat always say that there are too many redirects when visiting?

Insert picture description here
This is a problem that many people encounter when they start to practice the use of filters and do automatic login cases.

Solution:
1. Delete cookies (generally not this problem)

2. The problem: the configuration of the pattern in the configuration file is: /** All visits are filtered, and there is a page redirection after a successful login in the filter code, and the page redirection is also filtered, so it will appear
Insert picture description here
Infinite loop, just change /** to /*.do ( this is my problem ), and netizens only need to change to their own path suffix
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_49092628/article/details/109847088