作者 王勇

忘记了安全认证,加上了springsecurity

... ... @@ -17,10 +17,10 @@ spring:
default-property-inclusion: ALWAYS
time-zone: GMT+8
date-format: yyyy-MM-dd
# security:
# user:
# name: admin
# password: 123456
security:
user:
name: admin
password: 123456
# \u94FE\u8DEF\u8FFD\u8E2A\u914D\u7F6E
zipkin:
base-url: http://192.168.1.63:9411
... ... @@ -50,10 +50,10 @@ eureka:
prefer-ip-address: true
instance-id: ${spring.cloud.client.ip-address}:${server.port}
hostname: ${spring.cloud.client.ip-address}
# metadata-map:
# user:
# name: "admin"
# passwoed: "123456"
metadata-map:
user:
name: "admin"
passwoed: "123456"
client:
healthcheck:
enabled: true
... ...
... ... @@ -35,10 +35,10 @@
<!-- SpringBoot end -->
<!-- Security start -->
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- Security end -->
<!-- SpringCloud start -->
... ...