the RabbitTemplate class is used in spring-boot projects. Some businesses need manual ack, and some can automatically ack. What do you need to do?
my idea: I don"t know if it works?
can you create multiple RabbitTemplate @ Bean to deal with different business scenarios? However, ConnectionFactory can not use the configuration file, you need to inherit ConnectionFactory to override the ack property to auto.
the following is the current configuration file: