SpringBoot框架报错Full authentication is required to access this resource

使用postman报错信息:
SpringBoot框架报错Full authentication is required to access this resource_第1张图片

搜索了一圈百度,了解到此为springboot的安全机制。
最多的方法是在配置文件中增加配置项:

management.security.enabled=false

尝试后,发现未成功。

最后把引入的包删除后,可以正常通信:

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

因暂时仅为调试需要,先如此修改。后续有新的理解再来补充。

你可能感兴趣的:(B2-SpringBoot框架)