File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
package itn.let.mail.web;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import itn.let.mail.service.MailTemplateService;
@Controller
public class MailTemplateController {
@Resource (name = "MailTemplateService")
private MailTemplateService mailTemplateService;
// 휴면회원 메일발송
@RequestMapping("/mail/mailTmplSendMemberDormantAjax.do")
public ModelAndView mailTmplSendMemberDormant(
HttpServletRequest request
) throws Exception{
ModelAndView modelAndView = new ModelAndView();
modelAndView.setViewName("jsonView");
boolean isSuccess = true;
String msg = "";
try {
// 휴면회원 메일발송
mailTemplateService.mailSendMemberDormant();
}
catch(Exception e) {
isSuccess = false;
msg = "에러메시지 : " + e.getMessage();
e.printStackTrace();
}
modelAndView.addObject("isSuccess", isSuccess);
modelAndView.addObject("msg", msg);
return modelAndView;
}
}