refactor(mq): Optimize RocketMQ topics and message publishing

This commit is contained in:
2025-04-09 22:47:19 +08:00
parent 6b5bd6daaf
commit bb41632578
5 changed files with 73 additions and 17 deletions
@@ -0,0 +1,16 @@
package com.nuaa.video.gateway.config;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;
@Configuration
public class LoadBalancerConfig {
@Bean
@LoadBalanced
public WebClient.Builder loadBalancedWebClientBuilder() {
return WebClient.builder();
}
}
@@ -65,7 +65,7 @@ spring:
predicates:
- Path=/admin/**
filters:
- StripPrefix=1
- StripPrefix=0
sentinel:
transport:
dashboard: ${SENTINEL_DASHBOARD_HOST:5.180.253.115}:${SENTINEL_DASHBOARD_PORT:8080}