第 55 章 JSON Gson
gson 是使用 Gson 库的数据格式。
from("activemq:My.Queue"). marshal().json(JsonLibrary.Gson). to("mqseries:Another.Queue");
55.1. 依赖项
当在 Camel Spring Boot 中使用 json-gson
时,请确保使用以下 Maven 依赖项来支持自动配置:
<dependency> <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-gson-starter</artifactId> </dependency>