I have a Springboot application with spring-cloud-function.
The implementation is of type Consumer
With spring boot 2.1.5.RELEASE and spring-cloud-dependencies Greenwich.SR6 , on calling the rest api , the application returns 200 response code.
After upgrading the spring boot version to 2.2.13.RELEASE and its higher version and spring-cloud-dependencies to Hoxton.SR5 and its higher versions 2020.0.3 / 2021.0.3 , the api is now returning 202 response code .
How is this happening ?
Code snippet
public class CustomClass implements Consumer<Message<String>> {
public void accept(Message<String> body) {
//operation
}
}