test_class.declarator: logger = LoggerFactory.getLogger("mailLogs")
test_class.original_string: Logger logger = LoggerFactory.getLogger("mailLogs");
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: mailService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private MailService mailService;
test_class.type: MailService
test_class.var_name: mailService
test_class.file: CheckDomain/src/test/java/me/ffis/checkdomain/service/impl/MailServiceImplTest.java
test_class.identifier: MailServiceImplTest
test_case.body: @Test
      public void getMailHtmlTest() {
          MailTemplateModel model = new MailTemplateModel();
          model.setDomain("ffis.me");
          model.setTime(new Date());
          model.setStatus("Domain name is available 表示域名可以注册");
          String result = mailService.getMailHtml(model);
          System.out.println(result);
      }
test_case.class_method_signature: MailServiceImplTest.getMailHtmlTest()
test_case.full_signature: @Test public void getMailHtmlTest()
test_case.identifier: getMailHtmlTest
test_case.invocations: setDomain setTime setStatus getMailHtml println
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getMailHtmlTest()
focal_class.declarator: maillogger = LoggerUtils.Logger(LogFileName.MAIL_LOGS)
focal_class.modifier: private final
focal_class.original_string: private final Logger maillogger = LoggerUtils.Logger(LogFileName.MAIL_LOGS);
focal_class.type: Logger
focal_class.var_name: maillogger
focal_class.declarator: mailSender
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private JavaMailSender mailSender;
focal_class.type: JavaMailSender
focal_class.var_name: mailSender
focal_class.declarator: javaMailSender
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private JavaMailSender javaMailSender;
focal_class.type: JavaMailSender
focal_class.var_name: javaMailSender
focal_class.declarator: MAIL_SENDER
focal_class.modifier: @Value("${customize.mail.sender}")
      private
focal_class.original_string: @Value("${customize.mail.sender}")
      private String MAIL_SENDER;
focal_class.type: String
focal_class.var_name: MAIL_SENDER
focal_class.declarator: SENDER_NAME
focal_class.modifier: @Value("${customize.mail.senderName}")
      private
focal_class.original_string: @Value("${customize.mail.senderName}")
      private String SENDER_NAME;
focal_class.type: String
focal_class.var_name: SENDER_NAME
focal_class.declarator: freeMarkerConfigurer
focal_class.modifier: @Autowired
focal_class.original_string: @Autowired
      FreeMarkerConfigurer freeMarkerConfigurer;
focal_class.type: FreeMarkerConfigurer
focal_class.var_name: freeMarkerConfigurer
focal_class.file: CheckDomain/src/main/java/me/ffis/checkdomain/service/impl/MailServiceImpl.java
focal_class.identifier: MailServiceImpl
focal_class.interfaces: implements MailService
focal_class.class_method_signature: MailServiceImpl.sendSimpleMail(MailTemplateModel model, String email)
focal_class.full_signature: @Async @Override public void sendSimpleMail(MailTemplateModel model, String email)
focal_class.identifier: sendSimpleMail
focal_class.modifiers: @Async @Override public
focal_class.parameters: (MailTemplateModel model, String email)
focal_class.return: void
focal_class.signature: void sendSimpleMail(MailTemplateModel model, String email)
focal_class.class_method_signature: MailServiceImpl.getMailHtml(MailTemplateModel mailTemplateModel)
focal_class.full_signature: @Override public String getMailHtml(MailTemplateModel mailTemplateModel)
focal_class.identifier: getMailHtml
focal_class.modifiers: @Override public
focal_class.parameters: (MailTemplateModel mailTemplateModel)
focal_class.return: String
focal_class.signature: String getMailHtml(MailTemplateModel mailTemplateModel)
focal_method.body: @Override
      public String getMailHtml(MailTemplateModel mailTemplateModel) {
          try {
              //创建配置类
              Configuration configuration = new Configuration(Configuration.getVersion());
              //设置字符集
              configuration.setDefaultEncoding("utf-8");
              //加载模板
              Template template = freeMarkerConfigurer.getConfiguration().getTemplate("mailTemplate.ftl");
              //模板静态化并返回
              return FreeMarkerTemplateUtils.processTemplateIntoString(template, mailTemplateModel);
          } catch (Exception e) {
              e.printStackTrace();
              log.error("模板静态化异常", e);
              return null;
          }
      }
focal_method.class_method_signature: MailServiceImpl.getMailHtml(MailTemplateModel mailTemplateModel)
focal_method.full_signature: @Override public String getMailHtml(MailTemplateModel mailTemplateModel)
focal_method.identifier: getMailHtml
focal_method.invocations: getVersion setDefaultEncoding getTemplate getConfiguration processTemplateIntoString printStackTrace error
focal_method.modifiers: @Override public
focal_method.parameters: (MailTemplateModel mailTemplateModel)
focal_method.return: String
focal_method.signature: String getMailHtml(MailTemplateModel mailTemplateModel)