我在消费者模式下使用Netty4组件(http://camel.apache.org/netty4.html)构建一个具有ApacheCamel路由的微服务。因此,在我的微服务中,我正在构建的这条路由将通过TCP连接接收消息。为此,我这样做了:@Overridepublicvoidconfigure()throwsException{this.from("netty4:tcp://localhost:7000?textline=true&encoding=utf8").process(newProcessor(){@Overridepublicvoidprocess(finalExch