File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
spring-cloud-aws-dependencies
spring-cloud-aws-samples/spring-cloud-aws-sqs-sample/src/main/java/io/awspring/cloud/sqs/sample Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 25
25
<properties >
26
26
<javaparser .version>3.24.10</javaparser .version>
27
27
<spotless .version>2.31.0</spotless .version>
28
- <awssdk-v2 .version>2.20.39 </awssdk-v2 .version>
28
+ <awssdk-v2 .version>2.20.49 </awssdk-v2 .version>
29
29
<amazon .dax.version>2.0.3</amazon .dax.version>
30
30
<maven-gpg-plugin .version>1.6</maven-gpg-plugin .version>
31
31
<spring-cloud-commons .version>4.0.1</spring-cloud-commons .version>
32
32
<jakarta .mail.version>2.1.0</jakarta .mail.version>
33
33
<eclipse .jakarta.mail.version>1.0.0</eclipse .jakarta.mail.version>
34
- <aws-crt .version>0.21.9 </aws-crt .version>
34
+ <aws-crt .version>0.21.12 </aws-crt .version>
35
35
</properties >
36
36
37
37
<dependencyManagement >
Original file line number Diff line number Diff line change 17
17
18
18
import io .awspring .cloud .sqs .annotation .SqsListener ;
19
19
import io .awspring .cloud .sqs .operations .SqsTemplate ;
20
+ import java .util .UUID ;
20
21
import org .slf4j .Logger ;
21
22
import org .slf4j .LoggerFactory ;
22
23
import org .springframework .boot .ApplicationRunner ;
23
24
import org .springframework .context .annotation .Bean ;
24
25
import org .springframework .context .annotation .Configuration ;
25
26
import software .amazon .awssdk .services .sqs .model .Message ;
26
27
27
- import java .util .UUID ;
28
-
29
28
@ Configuration
30
29
public class SpringSqsListenMultipleQueues {
31
30
@@ -45,7 +44,7 @@ public ApplicationRunner sendMessageToQueues(SqsTemplate sqsTemplate) {
45
44
sqsTemplate .
sendAsync (
ORDER_QUEUE ,
new OrderMessage (
UUID .
randomUUID (),
"[email protected] " ));
46
45
47
46
sqsTemplate .sendAsync (WITHDRAWAL_QUEUE ,
48
- new WithdrawalMessage (
UUID .
randomUUID (),
"Mary" ,
"[email protected] " ));
47
+ new WithdrawalMessage (
UUID .
randomUUID (),
"Mary" ,
"[email protected] " ));
49
48
};
50
49
}
51
50
You can’t perform that action at this time.
0 commit comments