|
|
|
@@ -25,6 +25,9 @@ public class GlobalDefultExceptionHandler { |
|
|
|
@Autowired |
|
|
|
private boolean isFmException; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private String fmExceptionEmails; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private MailService mailService; |
|
|
|
|
|
|
|
@@ -51,7 +54,7 @@ public class GlobalDefultExceptionHandler { |
|
|
|
sb.append("\n"); |
|
|
|
sb.append(sw.toString()); |
|
|
|
|
|
|
|
String[] receivers = new String[] {"hupeng@iformall.com", "wuguoqiang@iformall.com", "gongbiao@iformall.com", "luozukai@iformall.com"}; |
|
|
|
String[] receivers = fmExceptionEmails.split(","); |
|
|
|
|
|
|
|
//发送邮件 |
|
|
|
mailService.sendSimpleMail(receivers, "请求地址:" + request.getRequestURL() + "异常", sb.toString()); |
|
|
|
|