title: avroserializer declarion in spring properties
body: <p>I am trying to use an avroserializer for value serialization in a kafka publisher. This is the entry I added in my application properties:</p>
  <pre><code>spring.kafka.producer.value-serializer=io.confluent.kafka.serializers.KafkaAvroSerializer.class
  </code></pre>
  <p>I am getting the below exception.Please help me what to change here.</p>
  <pre><code>Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  2021-06-22 00:25:15.926 ERROR 25080 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
  
  ***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  Failed to bind properties under 'spring.kafka.producer.value-serializer' to java.lang.Class&lt;?&gt;:
  
      Property: spring.kafka.producer.value-serializer
      Value: io.confluent.kafka.serializers.KafkaAvroSerializer.class
      Origin: class path resource [application.properties] - 22:40
      Reason: No converter found capable of converting from type [java.lang.String] to type [java.lang.Class&lt;?&gt;]
  
  Action:
  
  Update your application's configuration
  </code></pre>
  <p>I tried with this option also:</p>
  <pre><code>spring.kafka.producer.value-serializer=io.confluent.kafka.serializers.KafkaAvroSerializer
  </code></pre>