spring boot增加JWT验证并在springdoc中自动添加token
warning:
这篇文章距离上次修改已过212天,其中的内容可能已经有所变动。
在Spring Boot中增加JWT验证并在SpringDoc中自动添加token,你可以使用Spring Security和SpringDoc的集成。以下是一个简化的解决方案:
- 添加依赖:
- 配置Security和JWT:
评论已关闭