SpringBoot swagger 配置账号密码
<!-- 鉴权 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
security:
basic:
enabled: true
path: /swagger-ui.html
user:
name: admin
password: admin
本文介绍如何在SpringBoot项目中配置Swagger实现基本的HTTP鉴权功能,包括引入依赖及设置用户名密码。
3790

被折叠的 条评论
为什么被折叠?



