Fix some tests
There is one behaviour change (you have to POST an array to a function endpoint if you are sending a body), and also a message converter that needed to be removed so that arrays are not toStringed in the response body.
This commit is contained in:
@@ -35,8 +35,6 @@ import org.springframework.cloud.function.web.flux.response.FluxReturnValueHandl
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.support.DefaultConversionService;
|
||||
import org.springframework.http.converter.ObjectToStringHttpMessageConverter;
|
||||
import org.springframework.util.ClassUtils;
|
||||
import org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler;
|
||||
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
|
||||
@@ -57,11 +55,6 @@ public class ReactorAutoConfiguration {
|
||||
@Autowired
|
||||
private ApplicationContext context;
|
||||
|
||||
@Bean
|
||||
public ObjectToStringHttpMessageConverter objectToStringHttpMessageConverter() {
|
||||
return new ObjectToStringHttpMessageConverter(new DefaultConversionService());
|
||||
}
|
||||
|
||||
@Bean
|
||||
public FunctionHandlerMapping functionHandlerMapping(FunctionCatalog catalog,
|
||||
FunctionInspector inspector) {
|
||||
|
||||
Reference in New Issue
Block a user