Commit 89a7e796 authored by 赵建伟's avatar 赵建伟

update codes

parent 599110cd
#在BJ-GM-Prod-Cos-metabase001节点上进行如下配置
vim dqmp.conf
server {
listen 80;
server_name dqmp.prod.gengmei;
client_max_body_size 4G;
access_log /data/log/nginx/acces-dqmp.log combined;
error_log /data/log/nginx/error.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_remoteip;
proxy_set_header Host $http_host;
proxy_pass http://172.16.44.8:8990;
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
sudo mdir -p /data/log/dqmp
sudo chown -R apple:wheel /data/log/dqmp
\ No newline at end of file
package com.gmei.data.dqmp.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.gmei.data.dqmp.service.MailService;
......@@ -29,7 +30,8 @@ public class MailServiceImpl implements MailService{
content = "数据质量监控预警触发,具体参数信息如下:\n" + content;
SimpleMailMessage message = new SimpleMailMessage();
message.setFrom(from);
message.setTo(to);
String[] tos = to.split(",");
message.setTo(tos);
message.setSubject(subject);
message.setText(content);
try {
......@@ -38,6 +40,5 @@ public class MailServiceImpl implements MailService{
} catch (Exception e) {
logger.error("发送邮件异常,请核实!", e);
}
}
}
......@@ -53,7 +53,7 @@ mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
toMail:
addr: zhaojianwei@igengmei.com
addr: zhaojianwei@igengmei.com,jianweizhao@yeah.net
subject: 数据质量预警信息
#---dingding send config---
......
......@@ -19,9 +19,9 @@ spring:
datasource:
#---mysql config---
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://172.18.44.3:3306/dqmp?useSSL=false
username: root
password: 5OqYM^zLwotJ3oSo
url: jdbc:mysql://172.16.30.130:3306/dqmp?useSSL=false
username: dqmp
password: WyUcSd2aPJBy
#---druid config---
type: com.alibaba.druid.pool.DruidDataSource
......@@ -53,14 +53,13 @@ mail:
fromMail:
addr: youjiantongji@wanmeizhensuo.com
toMail:
addr: zhaojianwei@igengmei.com
addr: zhangmengyu@igengmei.com,zhanglei@igengmei.com,xuepengfei@wanmeizhensuo.com
subject: 数据质量预警信息
#---dingding send config---
dingding:
atMobile: 13051007691
# webhookToken: https://oapi.dingtalk.com/robot/send?access_token=68d7d6e9aaf81ebbf0f5228a3eadf769f1af0a7b0cb3dcb8fb8885dc5d93054f
webhookToken: https://oapi.dingtalk.com/robot/send?access_token=f7706a17b6de3ab6318806d1ed3d31fc68642bee99693280ee9a1591ab978c51
atMobile: 17639232521
webhookToken: https://oapi.dingtalk.com/robot/send?access_token=68d7d6e9aaf81ebbf0f5228a3eadf769f1af0a7b0cb3dcb8fb8885dc5d93054f
#---mybatis config---
mybatis:
......
......@@ -2,7 +2,7 @@
<configuration debug="false" scan="true" scanPeriod="1 seconds">
<contextName>logback</contextName>
<property name="log.path" value="/tmp/dqmp.log"/>
<property name="log.path" value="/data/log/dqmp/dqmp.log"/>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
......
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