2.0依赖升级完成

This commit is contained in:
Xiong Neng
2018-09-09 22:16:56 +08:00
parent 9e9cd02507
commit 483b642ca0
29 changed files with 41 additions and 78 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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;
});
}