camel springboot jackson unmarshal在tomcat中不起作用,但其他容器中起作用
它为所有json数据抛出以下错误:
com.fasterxml.jackson.databind.JsonMappingException: Root name '' does not
match expected ('Object') for type [simple type, class java.lang.Object]
代码(用。代替大括号)。
.dataFormats.
.json id="JSONUnMarshal" library="Jackson"/.
./dataFormats.
.route id="cbr-route".
.from id="_from1sgd" uri="file:workcz/cbr/input1"/.
.convertBodyTo type="java.lang.String"/.
.unmarshal id="_unmarshals1sgd" ref="JSONUnMarshal"/.
.to uri="file:workzc/cbr/output1"/.
./route.