我使用spring security,我收到一个错误,他说:这个网页有一个重定向循环
<security:http pattern="/templates/index.html" security="none"/>
<security:http pattern="/templates/login.html" security="none"/>
<security:http pattern="/templates/denied.html" security="none"/>
<security:http pattern="/css/**" security="none"/>
<security:http pattern="/js/**" security="none"/>
<security:http pattern="/imgs/**" security="none"/>
<security:http use-expressions="true">
<security:form-login
login-page="/templates/index.html"
login-processing-url="/templates/j_spring_security_check"
default-target-url="/templates/main.html"
always-use-default-target='true'
authentication-failure-url="/templates/login-error.html"
/>
<security:logout
logout-url="/templates/j_spring_security_logout"
invalidate-session="true"
logout-success-url="/templates/index.html"
/>
<security:intercept-url pattern="/**" access="hasRole('ROLE_USER')" requires-channel="any"/>
<security:http-basic />
</security:http>
在我的索引页面中,我在正文中加载登录内容
在我的登录信息中,我有一个登录名和密码文本字段。
当我点击按钮时,我在正文中加载了另一个网页的内容
我不明白为什么我会得到这个无限循环