Push deployer configuration out of autoconfig

It tends to pop back into function apps where it is not needed
otherwise. Users that want to use the library need to import
the FunctionConfiguration directly using the
@EnableFunctionDeployer convenience annotation..
This commit is contained in:
Dave Syer
2018-04-25 17:33:24 +01:00
parent 7fa0ed7b6b
commit ebd1646308
22 changed files with 656 additions and 328 deletions

View File

@@ -99,10 +99,10 @@ public class FluxHandlerMethodArgumentResolver
body = null;
}
else {
try {
if (json.startsWith("[")) {
body = mapper.toList(json, type);
}
catch (IllegalArgumentException e) {
else {
nativeRequest.setAttribute(WebRequestConstants.INPUT_SINGLE, true);
body = Arrays.asList(mapper.toSingle(json, type));
}