@@ -1689,6 +1689,17 @@ public final class ObjectUtils {
return value;
}
+ /**
+ * 获取数组第一个元素
+ *
+ * @param array 对象数组
+ * @param <T> 元素类型
+ * @return 对象实例
+ */
+ public static <T> T first(T... array) {
+ return isEmpty(array) ? null : array[0];
+ }
+
/**
* 获取集合第一个元素
*
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestBody;
* @author Woody
* @date 2024/12/19
*/
-@FeignClient(value = "${rocketmq.fallback-store-server:rocketmq}")
+@FeignClient(value = "${rocketmq.fallback-store-server:message-store-server}")
public interface RocketMQStoreClient {
* 保存RocketMQ降级消息