我们还需要在application.properties中为Basic-Authentication设置一个用户名和一个密码,以避免每次重启应用程序时自动生成密码。
我们还需要在application.properties中为Basic-Authentication设置用户名和密码,以避免在每次应用程序重新启动时自动生成密码: server.port=8888 spring.cloud.config.server.git.uri
specification/authentication/ [16] HTTP基本身份验证: https://swagger.io/docs/specification/authentication/basic-authentication
how-to-configure-spring-security-to-allow-swagger-url-to-be-accessed-without-aut/37683455 https://swagger.io/docs/specification/authentication/basic-authentication