I'm trying to run a very simple stream app in SCDF 2.2.1
with minikube
but I'm getting the following exception:
org.springframework.core.annotation.AnnotationConfigurationException: Attribute 'proxyBeanMethods' in annotation [org.springframework.boot.SpringBootConfiguration] is declared as an @AliasFor nonexistent attribute 'proxyBeanMethods' in annotation [org.springframework.context.annotation.Configuration].
After googling that error, I found that proxyBeanMethods
is a new feature in Spring Boot 2.2
but SCDF 2.2.1
runs Spring Boot 2.1.6
.
Here is my processor code:
@SpringBootApplication
@EnableBinding(Processor.class)
public class MyApplication {
private final Log log = LogFactory.getLog(MyApplication.class);
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
@StreamListener(Processor.INPUT)
@SendTo(Processor.OUTPUT)
public String check(String payload) {
log.info(payload);
return payload;
}
}
It seems that there is some kind of incompatibility but I can't figure out what I am doing wrong.
I change my versions to :
Spring Boot 2.1.6
Spring Cloud Greenwich.SR4
which uses Spring Cloud Stream 2.1.4
and now my stream is working