zhangback
23 小时以前 ba87fd72f14c5ed0caf14e9d8ff116d254a8c113
tms/src/main/java/com/ruoyi/tms/config/TmsRabbitConfig.java
@@ -3,6 +3,7 @@
import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
@Configuration
@@ -46,5 +47,11 @@
    public Binding deadBinding() {
        return BindingBuilder.bind(deadQueue()).to(deadExchange()).with("car_key_dead_routing_key");
    }
    // RestTemplate bean for HTTP requests
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}