美文网首页
Spring Cloud 2.1.3 配置安全认证

Spring Cloud 2.1.3 配置安全认证

作者: 16813153e52b | 来源:发表于2019-04-05 01:05 被阅读0次

Authenticating with the Eureka Server

Spring Cloud Version
<spring-cloud.version>Greenwich.SR1</spring-cloud.version>

  1. 添加security依赖
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-security</artifactId>
</dependency>
  1. 添加spring security配置在application.yml
spring:
  security:
    user:
      name: admin
      password: admin123

相关文章

网友评论

      本文标题:Spring Cloud 2.1.3 配置安全认证

      本文链接:https://www.haomeiwen.com/subject/swociqtx.html