wujianwei
2026-03-30 34669fa71bd2cc4a4ff57d7d2440a95da998b6b5
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();
    }
}