Commit 45e94dd8 by admin

update connect

parent 8655d729
......@@ -207,9 +207,7 @@ public class ESUtil {
log.info("金融结束");
} catch (Exception e) {
log.error("es检索出错,错误信息【{}】", e);
} finally {
esClient.close();
}
}
for (NewsResult news : result) {
for (String source : sources) {
if (news.getSource().contains(source)) {
......
......@@ -31,8 +31,8 @@ public class SendMailUtil {
private final static Log log = LogFactory.getLog(SendMailUtil.class);
// 发送邮件的邮箱号(若有授权码则密码输入授权码)
public static String myEmailAccount2 = "ccxe4zhishu@126.com";
public static String myEmailPassword2 = "1q2w3e4r5t";
public static String myEmailAccount2 = "ccxe4zhishu@126.com";
public static String myEmailPassword2 = "1q2w3e4r5t";
public static String myEmailAccount = "jryqccxe@zhiweidata.com";
public static String myEmailPassword = "1q2w3e4r";
// 发件人邮箱的 SMTP 服务器地址, 必须准确, 不同邮件服务器地址不同, 一般(只是一般, 绝非绝对)格式为: smtp.xxx.com
......@@ -46,7 +46,7 @@ public class SendMailUtil {
* 接收者的邮箱号
* @param url
* 本地的附件地址
* @throws Exception
* @throws Exception
*/
public static void sendMessage(String mail, String url, String str) throws Exception {
log.info(mail + "," + url + "," + str);
......@@ -72,8 +72,7 @@ public class SendMailUtil {
transport.sendMessage(message, message.getAllRecipients());
transport.close();
}
public static void sendMessage2(String mail, String url, String str) throws Exception {
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