Commit 45e94dd8 by admin

update connect

parent 8655d729
...@@ -207,8 +207,6 @@ public class ESUtil { ...@@ -207,8 +207,6 @@ public class ESUtil {
log.info("金融结束"); log.info("金融结束");
} catch (Exception e) { } catch (Exception e) {
log.error("es检索出错,错误信息【{}】", e); log.error("es检索出错,错误信息【{}】", e);
} finally {
esClient.close();
} }
for (NewsResult news : result) { for (NewsResult news : result) {
for (String source : sources) { for (String source : sources) {
......
...@@ -73,7 +73,6 @@ public class SendMailUtil { ...@@ -73,7 +73,6 @@ public class SendMailUtil {
transport.close(); transport.close();
} }
public static void sendMessage2(String mail, String url, String str) throws Exception { public static void sendMessage2(String mail, String url, String str) throws Exception {
log.info(mail + "," + url + "," + str); log.info(mail + "," + url + "," + str);
// 创建参数配置, 用于连接邮件服务器的参数配置 // 创建参数配置, 用于连接邮件服务器的参数配置
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment