jinlin
2025-02-18 6250f74b2a02770a37f2f0144c762f7952a12bd6
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();
    }
}