Browse Source

1、spring-boot-admin版本低于spring-boot版本,导致项目启动失败

2、spring-boot-admin-server配置context-path需修改至server.servlet下,否则启动后无法正常使用
pull/1/head
UndefinedDiary Yangkai.Shen 5 years ago
parent
commit
e2e9390834
3 changed files with 5 additions and 3 deletions
  1. +1
    -1
      spring-boot-demo-admin-client/pom.xml
  2. +1
    -1
      spring-boot-demo-admin-server/pom.xml
  3. +3
    -1
      spring-boot-demo-admin-server/src/main/resources/application.yml

+ 1
- 1
spring-boot-demo-admin-client/pom.xml View File

@@ -20,7 +20,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<spring-boot-admin.version>2.0.3</spring-boot-admin.version>
<spring-boot-admin.version>2.1.0</spring-boot-admin.version>
</properties> </properties>


<dependencies> <dependencies>


+ 1
- 1
spring-boot-demo-admin-server/pom.xml View File

@@ -20,7 +20,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<spring-boot-admin.version>2.0.3</spring-boot-admin.version>
<spring-boot-admin.version>2.1.0</spring-boot-admin.version>
</properties> </properties>


<dependencies> <dependencies>


+ 3
- 1
spring-boot-demo-admin-server/src/main/resources/application.yml View File

@@ -1,7 +1,9 @@
server: server:
port: 8000 port: 8000
servlet:
context-path: /admin
spring: spring:
boot: boot:
admin: admin:
# 管控台上下文路径 # 管控台上下文路径
context-path: /admin
context-path: /

Loading…
Cancel
Save