Spring Security access only to unlogged user

前端 未结 0 967
情歌与酒
情歌与酒 2021-02-19 17:09

is there a way to block logged user to access login and register pages? I tried something like this

.antMatchers("/login").not().hasAnyRole("USER&q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题