jinlin
2024-01-10 cdf29a8f6fb9990f82ccc1d3f47bfba48cfaf4fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.zt.config;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
import com.zt.common.message.producer.MessageProducer;
import com.zt.common.message.producer.SynchronousQueueProducer;
 
@Configuration
public class MessageConfiguration {
 
    @Bean
    public MessageProducer messageProducer() {
        // 未来可以扩展其他渠道,并通过配置选择
        return new SynchronousQueueProducer();
    }
}