Skip to content

Commit 2439fe9

Browse files
Document incompatibility of Spring Boot DevTools with @SqsListener (#657) (#1348)
1 parent b390fee commit 2439fe9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/main/asciidoc/sqs.adoc

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public class SqsApplication {
4242
}
4343
----
4444

45+
IMPORTANT: Due to a classloader related https://github.com/awspring/spring-cloud-aws/issues/657[issue] it is currently not possible to use @SqsListener together with Spring Boot DevTools.
46+
4547
Without Spring Boot, it's necessary to import the `SqsBootstrapConfiguration` class in a `@Configuration`, as well as declare a `SqsMessageListenerContainerFactory` bean.
4648

4749
[source, java]
@@ -592,6 +594,8 @@ MessageListenerContainer<Object> myListenerContainer(SqsAsyncClient sqsAsyncClie
592594
The simplest way to consume `SQS` messages is by annotating a method in a `@Component` class with the `@SqsListener` annotation.
593595
The framework will then create the `MessageListenerContainer` and set a `MessagingMessageListenerAdapter` to invoke the method when a message is received.
594596

597+
IMPORTANT: Due to a classloader related https://github.com/awspring/spring-cloud-aws/issues/657[issue] it is currently not possible to use @SqsListener together with Spring Boot DevTools.
598+
595599
When using `Spring Boot` with `auto-configuration`, no configuration is necessary.
596600

597601
Most attributes on the annotation can be resolved from SpEL `(#{...})` or property placeholders `(${...})`.

0 commit comments

Comments
 (0)