发送电子邮件:
package com.atguigu.crud.bean;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
public class Message {
private Long id;
private Long receive_user;
private User user;
private String content;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
private Byte type;
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date create_time;
private Long link_user;
private Byte is_read;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getReceive_user() {
return receive_user;
}
public void setReceive_user(Long receive_user) {
this.receive_user = receive_user;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreate_time() {
return create_time;
}
public void setCreate_time(Date create_time) {
this.create_time = create_time;
}
public Long getLink_user() {
return link_user;
}
public void setLink_user(Long link_user) {
this.link_user = link_user;
}
public Byte getIs_read() {
return is_read;
}
public void setIs_read(Byte is_read) {
this.is_read = is_read;
}
}