jinlin
2024-07-16 ee2a27313fbf5e7741644f9f3701d243487dbaa4
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();
    }
}