Pārlūkot izejas kodu

JMS通用方法算法修改参数

andy 1 gadu atpakaļ
vecāks
revīzija
84f587805c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/main/java/com/scbfkj/uni/process/JMS.java

+ 1 - 1
src/main/java/com/scbfkj/uni/process/JMS.java

@@ -79,7 +79,7 @@ public class JMS {
                             Object data, String... args
     ) throws JMSException, MalformedURLException, ClassNotFoundException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
 
-        JmsTemplate template = getJmsTemplate(path, className, args);
+        JmsTemplate template = getJmsTemplate(path, className, (Object[]) args);
 
         try {
             if (data instanceof Object[] datas) {