Spring boot 使用SpringCloud配置和SpringCloud总线
我会使用SpringCloudBus来刷新配置应用程序。目前我的工作失败了。 似乎配置与旧版本不完全相同。 在我的配置服务器中 pom: 在应用程序中进行配置 pom: (父级具有相同版本的spring引导和spring云依赖项) 目前,当我在github上更新配置时,webhook调用配置服务器,但我有一个400错误。在配置服务器日志中,我有:Spring boot 使用SpringCloud配置和SpringCloud总线,spring-boot,spring-cloud-config,spring-cloud-bus,Spring Boot,Spring Cloud Config,Spring Cloud Bus,我会使用SpringCloudBus来刷新配置应用程序。目前我的工作失败了。 似乎配置与旧版本不完全相同。 在我的配置服务器中 pom: 在应用程序中进行配置 pom: (父级具有相同版本的spring引导和spring云依赖项) 目前,当我在github上更新配置时,webhook调用配置服务器,但我有一个400错误。在配置服务器日志中,我有: Resolved [org.springframework.web.bind.MissingServletRequestParameterExcept
Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required List parameter 'path' is not present]
我不明白什么是“路径”。
你能给我一些帮助吗?谢谢
spring:
application:
name: configuration-server
cloud:
config:
server:
git:
uri: git@github.com:myrepository/myApplicationsConfig.git
clone-on-start: true
default-label: master
health: false
enabled: true
bus:
enabled: true
profiles:
active: development
rabbitmq:
host: rabbitIP
port: rabbitPort
username: username
password: password
virtual-host: /
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
client:
registryFetchIntervalSeconds: 5
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>my.app.to.configure</groupId>
<artifactId>app-to-configure</artifactId>
<version>1.2.0-SNAPSHOT</version>
</parent>
<groupId>my.app.to.configure</groupId>
<artifactId>web-application</artifactId>
<name>web-application</name>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<scope>provided</scope>
</dependency>
...
</dependencies>
...
spring:
application:
name: my-application-to-configure
cloud:
config:
discovery:
enabled: true
service-id: configuration-server
profile: development
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
client:
registryFetchIntervalSeconds: 5
Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required List parameter 'path' is not present]