如图,一启动就出现下图登录界面

web项目访问被拦截

原因很简单就是被拦截了。pom.xml中引入了下面的包,注释掉就可以了。当然如果用了shiro等权限框架也可能出现类似问题。谁copy进来的,盘他。

<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-security</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-config</artifactId>
    </dependency>

 

相关文章:

  • 2022-12-23
  • 2021-10-26
  • 2021-11-03
  • 2022-03-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-12
  • 2022-12-23
  • 2021-12-23
  • 2021-12-11
  • 2021-06-16
  • 2021-09-14
  • 2022-12-23
相关资源
相似解决方案