2.0依赖升级完成
This commit is contained in:
@ -15,8 +15,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>1.5.10.RELEASE</version>
|
||||
<relativePath/>
|
||||
<version>2.0.4.RELEASE</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>1.5.10.RELEASE</version>
|
||||
<relativePath/>
|
||||
<version>2.0.4.RELEASE</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
@ -26,10 +25,15 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.9.6</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
@ -72,7 +72,7 @@ public class AsyncRPCServer {
|
||||
public void onSuccess(String result) {
|
||||
amqpTemplate.convertAndSend(replyTo, (Object) result, m -> {
|
||||
//https://stackoverflow.com/questions/42382307/messageproperties-setcorrelationidstring-is-not-working
|
||||
m.getMessageProperties().setCorrelationId(correlationId);
|
||||
m.getMessageProperties().setCorrelationId(new String(correlationId));
|
||||
return m;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user