-
Security 官方文档
- 前言
Spring Cloud Config分成Spring Cloud Config Server 和 Spring Cloud Config Client
-
Spring Cloud Config Server 安全
-
前言
非常类似eureka server安全,也就是用户认证,之前也提过eureka的安全认证的教程
- 操作
复制microserver-config-server<最简单的demo>重命名为microserver-config-server-security
- 按照文档添加依赖
To use the default Spring Boot configured HTTP Basic security, just include Spring Security on the classpath (e.g. through
spring-boot-starter-security
). The default is a username of "user" and a randomly generated password, which isn’t going to be very useful in practice, so we recommend you configure the password (viasecurity.user.password
) and encrypt it (see below for instructions on how to do that).