作者 朱兆平

航班日期格式化方法

... ... @@ -10,6 +10,7 @@ import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
... ...
... ... @@ -3,6 +3,9 @@ package com.tianbo.util.RabitMq;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
/**
* 建立mq链接
*/
... ... @@ -17,7 +20,7 @@ public class ConnectionUtil {
* @return 返回链接
* @throws Exception
*/
public static Connection getConnection(String hostIp,int hostPort,String vHostName,String userName,String password) throws Exception {
public static Connection getConnection(String hostIp,int hostPort,String vHostName,String userName,String password) throws IOException, TimeoutException {
//定义连接工厂
ConnectionFactory factory = new ConnectionFactory();
//设置服务地址
... ...