wujianwei
2026-03-31 3c8ed575db70e0b995c7ee541ff3753ee8b57d87
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();
    }
}