简体   繁体   中英

Spring security intercept-url root and login

i want to secure everything except the root.. my security looks like this:

<http auto-config="true" use-expressions="true">
<intercept-url pattern="/"/>
<intercept-url access="isAuthenticated()" pattern="/**"/>
<form-login authentication-failure-url="/" login-page="/" default-target-url="/dashboard"/>
<logout invalidate-session="true" logout-success-url="/"/>
</http>

my login page is included in the root.. i'm getting a "The page isn't redirecting properly" error..

please can anybody help with this problem?

thnx

为登录页面添加旁路安全检查

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM