# 157. 商品详情页动态渲染系统:Spring Cloud 之 Eureka Server 安全认证

课程中使用如下方案实现安全认证

<dependency>  
    <groupId>org.springframework.boot</groupId>  
    <artifactId>spring-boot-starter-security</artifactId>  
</dependency>  

与

security:  
  basic:  
    enabled: true  
  user:  
    name: admin  
    password: 123456
1
2
3
4
5
6
7
8
9
10
11
12
13

但是此方式不适用于 boot 2+,过时信息为:

Deprecated The security auto-configuration is no longer customizable. Provide your own WebSecurityConfigurer bean instead.
1

此课程本人忽略,而且也没有讲解注册中心使用了安全认证之后,客户端怎么注册?

关于 security 的使用,请参考本人另外一个 笔记系列 Spring Security (opens new window)

下面就基于 spring cloud 提供的一整套技术:服务注册与发现、声明式的服务调用、熔断降级、网关路由、统一配置、链路追踪等技术, 来开发我们的商品详情页系统