springboot引入security,测试接口报Unauthorized

1、报错截图

2、当前项目pom文件引入security

复制代码
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-security</artifactId>
    <version>2.2.2.RELEASE</version>
</dependency>

3、解决办法

复制代码
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class,
        ManagementWebSecurityAutoConfiguration.class})
相关推荐
doiito16 小时前
【Web安全,微服务安全】HashiCorp Vault 项目深度分析报告
安全·微服务
阿里云云原生17 小时前
不再手动同步 Prompt 与 Skill:Nacos AI Registry 打造 Agent 时代的“代码仓库”
微服务
doiito(Do It Together)19 小时前
微服务资源优化新思路:Sablier + Podman 实现按需启动与自动休眠
微服务·架构·podman
言乐620 小时前
Python实现建造微服务商城后台
开发语言·python·算法·微服务·架构
Geek-Chow1 天前
微服务认证与授权:09 — banking-api-service(资源服务器)
服务器·微服务·架构
whaledown1 天前
互联网大厂Java求职面试三轮提问详解(涵盖Spring Boot、微服务、Kafka等核心技术)
java·jvm·数据库·spring boot·微服务·面试·kafka
步步为营DotNet1 天前
运用.NET Aspire 和 Native AOT 打造极致性能的云原生微服务
微服务·云原生·.net
沉静的小伙2 天前
在微服务中使用领域事件
java·运维·微服务
满意的星月2 天前
基于微服务和Docker容器技术的PaaS云平台架构设计(微服务架构实施原理)
docker·微服务·架构
doiito2 天前
微服务资源优化新思路:Sablier + Podman 实现按需启动与自动休眠
后端·微服务·性能优化