title: How to set avro content type on kafka producer with spring boot and spring cloud stream
body: <p>I am trying to build a working example with avro message producer, kafka and avro consumer using spring boot, spring cloud stream schema registry, kafka binder. The following error occurs when consuming messages:</p>
  <p>ERROR 7059 --- [afka-listener-1] o.s.c.s.b.k.KafkaMessageChannelBinder    : Unable to deserialize [io.igx.android.Sensor] using the contentType [application/x-java-object;type=io.igx.android.Sensor] java.lang.NullPointerException</p>
  <p>I have
  spring.cloud.stream.bindings.output.contentType=application/<em>+avro
  on consumer side and
  spring.cloud.stream.bindings.output.contentType=application/</em>+avro
  on producer side.</p>
  <p>Why is the consumer not seeing and using avro content type instead application/x-java-object.</p>