What is the problem of customizing multiple spring-boot RabbitTemplate template classes?

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:
clipboard.png

clipboard.png

Dec.16,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be77d8-31889.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be77d8-31889.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?