Closed mmajcenic closed 3 years ago
Thanks @mmajcenic for reporting.
Spring Cloud AWS (and Spring Cloud in general) are not ready yet to be used with Spring Boot 2.4.0. Hoxton release train is compatible with 2.3.x and you need to wait for Spring Cloud AWS 2.3.0 release for Spring Boot 2.4.0 compatibility.
Type: Bug
Component: SQS
Describe the bug When using
spring-cloud-aws-messaging
, without Webflux module and with embedded web server (as defined withWebEnvironment
enum), tests fail withjava.lang.ClassNotFoundException
.This happens, or at least I believe so, because
WebTestClientContextCustomizer
registers aWebTestClient
in:This later on causes
AbstractMethodMessageHandler.detectHandlerMethods
to fail becauseWebTestClient
methods are reflectively read and some of its methods contain undefined classes (likeorg.springframework.web.reactive.function.server.RouterFunction
).Versions are provided in gradle config, in sample.
Sample A simple gradle config:
Main class:
Test class: