swagger增强 knife4j-spring-boot-starter启动器,开启密码访问

		<dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>knife4j-spring-boot-starter</artifactId>
            <version>3.0.3</version>
        </dependency>

开启密码登录:

#swagger全局配置
knife4j:
  enable: true  #是否开启Swagger
  basic:
    enable: true  #进入界面是否需要账号密码
    username: admin
    password: 123456

猜你喜欢

转载自blog.csdn.net/qq_40319804/article/details/126426508