swagger加密碼

刘贵庆發表於2024-10-10
<!--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

完

相關文章