swagger加密码

<!--swagger-api  依赖开始-->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>swagger-bootstrap-ui</artifactId>
            <version>1.9.4</version>
        </dependency>
        <!--swagger-api  依赖结束-->



配置文件:
swagger.production=false
swagger.basic.enable=true
swagger.basic.username=root
swagger.basic.password=test


bean类加:
@EnableSwaggerBootstrapUI

完

 

posted @ 2024-10-10 13:10  刘贵庆  阅读(21)  评论(0编辑  收藏  举报