作者 王勇

init commit

@@ -9,6 +9,13 @@ spring: @@ -9,6 +9,13 @@ spring:
9 profiles: 9 profiles:
10 active: dev 10 active: dev
11 11
  12 + #security基本配置
  13 + security:
  14 + user:
  15 + #自定义登录用户名
  16 + name: admin
  17 + #自定义登录密码
  18 + password: 123456
12 cloud: 19 cloud:
13 config: 20 config:
14 label: master 21 label: master
@@ -33,6 +33,13 @@ @@ -33,6 +33,13 @@
33 <groupId>org.springframework.boot</groupId> 33 <groupId>org.springframework.boot</groupId>
34 <artifactId>spring-boot-starter-web</artifactId> 34 <artifactId>spring-boot-starter-web</artifactId>
35 </dependency> 35 </dependency>
  36 + <!-- -->
  37 + <dependency>
  38 + <groupId>org.springframework.boot</groupId>
  39 + <artifactId>spring-boot-starter-security</artifactId>
  40 + </dependency>
  41 +
  42 + <!-- SpringBoot end -->
36 43
37 <!-- SpringCloud start --> 44 <!-- SpringCloud start -->
38 <dependency> 45 <dependency>