xyc
2024-03-28 f3ad14f8af7fb651426d1ee617e7ecb9d3fc9aab
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();
    }
}