SPRINGSECURITY篇 八月 19, 2019

Spring Security 禁用匿名用户(anonymous().disable())后无限重定向到登录页的问题解决

文章字数 40k 阅读约需 36 mins.

最近做了一个小 demo,需要使用到 spring security,于是就把以前写过的 spring security 的代码直接 copy 过来用了,没想到却出现了问题…..

小 demo 直接...

查看全文

SPRINGSECURITY篇 三月 30, 2018

SpringSecurity Session并发过期后会重定向到 /login (入口点问题)问题的解决

文章字数 13k 阅读约需 12 mins.

在 SpringSecurity 中,我想配置一个关于session并发的控制,于是我是这样配置的

     @Override
        protected void configure(HttpSecurity http) throws Exception {
            http
                    .sessionManagement()
                    .invalidSessionStrategy(new InvalidSessionStrategyImpl())
                    .maximumSessions(-1).expiredSessionStrategy...
查看全文

SPRINGSECURITY篇 三月 28, 2018

重剑无锋,大巧不工 SpringBoot --- 整合使用 SpringSecurity

文章字数 17k 阅读约需 15 mins.

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-security</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId...
查看全文
0%