• 大小: 1.20M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-27
  • 标签: Spring  Pc  论坛  系统  

资源简介


代码片段和文件信息

package com.fc.async;

import com.fc.util.MyConstant;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.mail.javamail.MimeMessagePreparator;

import javax.mail.internet.MimeMessage;

public class MailTask implements Runnable {

    private String code;
    private String email;
    private JavaMailSender javaMailSender;
    private int operation;

    public MailTask(String code String email JavaMailSender javaMailSenderint operation) {
        this.code = code;
        this.email = email;
        this.javaMailSender = javaMailSender;
        this.operation = operation;
    }

    @Override
    public void run() {
        javaMailSender.send(new MimeMessagePreparator() {
            @Override
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-23 16:31  forum-master\
     文件          87  2019-05-23 16:31  forum-master\.gitattributes
     文件          15  2019-05-23 16:31  forum-master\.gitignore
     文件        1116  2019-05-23 16:31  forum-master\README.md
     文件       67258  2019-05-23 16:31  forum-master\df.sql
     文件       66885  2019-05-23 16:31  forum-master\example.log
     文件        6376  2019-05-23 16:31  forum-master\pom.xml
     目录           0  2019-05-23 16:31  forum-master\src\
     目录           0  2019-05-23 16:31  forum-master\src\main\
     目录           0  2019-05-23 16:31  forum-master\src\main\java\
     目录           0  2019-05-23 16:31  forum-master\src\main\java\com\
     目录           0  2019-05-23 16:31  forum-master\src\main\java\com\fc\
     目录           0  2019-05-23 16:31  forum-master\src\main\java\com\fc\async\
     文件        2022  2019-05-23 16:31  forum-master\src\main\java\com\fc\async\MailTask.java
     文件        2275  2019-05-23 16:31  forum-master\src\main\java\com\fc\async\MessageTask.java
     目录           0  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\
     文件        3045  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\IndexController.java
     文件        2765  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\LoginController.java
     文件         905  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\MessageController.java
     文件        2897  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\PostController.java
     文件        1086  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\ReplyController.java
     文件        1067  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\TopicController.java
     文件        5872  2019-05-23 16:31  forum-master\src\main\java\com\fc\controller\UserController.java
     目录           0  2019-05-23 16:31  forum-master\src\main\java\com\fc\interceptor\
     文件        1624  2019-05-23 16:31  forum-master\src\main\java\com\fc\interceptor\LoginInterceptor.java
     目录           0  2019-05-23 16:31  forum-master\src\main\java\com\fc\mapper\
     文件         235  2019-05-23 16:31  forum-master\src\main\java\com\fc\mapper\MessageMapper.java
     文件         577  2019-05-23 16:31  forum-master\src\main\java\com\fc\mapper\PostMapper.java
     文件         365  2019-05-23 16:31  forum-master\src\main\java\com\fc\mapper\ReplyMapper.java
     文件         198  2019-05-23 16:31  forum-master\src\main\java\com\fc\mapper\TopicMapper.java
     文件        1130  2019-05-23 16:31  forum-master\src\main\java\com\fc\mapper\UserMapper.java
............此处省略90个文件信息

评论

共有 条评论