|
|
@@ -7,6 +7,7 @@ import com.uas.message.mail.domain.MailLog;
|
|
|
import com.uas.message.mail.service.MailService;
|
|
|
import com.uas.sso.util.FastjsonUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.http.HttpEntity;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.http.MediaType;
|
|
|
@@ -32,7 +33,8 @@ public class RestMailServiceImpl implements MailService {
|
|
|
/**
|
|
|
* 邮件服务主机地址
|
|
|
*/
|
|
|
- private String MAIL_CONSOLE_HOST = "http://10.10.100.136:8080/";
|
|
|
+ @Value("${message.url}")
|
|
|
+ private String MAIL_CONSOLE_HOST;
|
|
|
|
|
|
/**
|
|
|
* 发送邮件给单个人url
|