title: Force Spring Kafka not to create topics automatically, but to use already created ones
body: <p>There is a quite simple case I would like to implement:
  I have a base and DLT topics:</p>
  <pre><code>MessageBus:
    Topic: my_topic
    DltTopic: my_dlt_topic
    Broker: event-serv:9092
  </code></pre>
  <p>So, those topics are already predefined, I don't need to create them automatically.</p>
  <p>The only I need to handle broken messages automatically without retries, because they don't make any sense, so I have something like this:</p>
  <pre><code>@KafkaListener(topics = [&quot;#{config.messageBus.topic}&quot;], groupId = &quot;group_id&quot;)
  @RetryableTopic(
      dltStrategy = DltStrategy.FAIL_ON_ERROR,
      autoCreateTopics = &quot;false&quot;,
      attempts = &quot;1&quot;
  )
  @Throws(IOException::class)
  fun consume(rawMessage: String?) {
      ...
  }
  
  @DltHandler
  fun processMessage(rawMessage: String?) {
      kafkaTemplate.send(config.messageBus.dltTopic, rawMessage)
  }
  </code></pre>
  <p>That of course doesn't work properly.
  I also tried to specify a <code>kafkaTemplate</code></p>
  <pre><code>@Bean
  fun kafkaTemplate(
      config: Config,
      producerFactory: ProducerFactory&lt;String, String&gt;
  ): KafkaTemplate&lt;String, String&gt; {
      val template = KafkaTemplate(producerFactory)
      template.defaultTopic = config.messageBus.dltTopic
      return template
  }
  </code></pre>
  <p>however, that does not change the situation.</p>
  <p>In the end, I believe there is an obvious solution, so I please give me a hint about it.</p>