MQ连接配置问题修改

master
Leon 3 years ago
parent ff4cffe3d6
commit 1a3f693cd4

@ -68,7 +68,8 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl<ProdReadyTaskMapper, P
public static final String STATUS_FINISH = "FINISH";
public static final String STATUS_CANCEL = "CANCEL";
public static final String MESSAGE_TYPE_WLZB = "WLZB";
@Autowired
@Autowired(required = false)
@Qualifier("defaultJmsTemplate")
private JmsMessagingTemplate jmsTemplate;
@Value("${print.server}")

@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
public class ActiveMQUtil {
@Autowired
@Autowired(required = false)
@Qualifier("mesJmsTemplate")
private JmsMessagingTemplate mesJmsTemplate;

@ -688,6 +688,6 @@ public class DateUtil
int second = calendar.get(Calendar.SECOND);
int msec = calendar.get(Calendar.MILLISECOND);
return String.valueOf(year) + String.valueOf(month) + String.valueOf(day) + String.valueOf(hour) + String.valueOf(minute) + String.valueOf(second);
return String.valueOf(year) + String.valueOf(month) + String.valueOf(day) + String.valueOf(hour) + String.valueOf(minute) + String.valueOf(second) + String.valueOf(msec);
}
}

@ -38,7 +38,7 @@ spring:
merge-sql: true
slow-sql-millis: 100
activemq:
enabled: true
enabled: false
brokerUrl: tcp://localhost:61616?wireFormat.maxInactivityDuration=0
password: admin
user: admin

@ -29,7 +29,7 @@ public class ResourceMQConsume {
@Autowired
private ResourceMQProcess resourceMQProcess;
@Autowired
@Autowired(required = false)
@Qualifier("defaultJmsTemplate")
private JmsMessagingTemplate template;

Loading…
Cancel
Save