天天看點

web項目通路被攔截

如圖,一啟動就出現下圖登入界面

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>