jinlin
2024-08-06 fe295552e5a3b010b5a6a60a1e2a94bc39b49d68
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();
    }
}