Skip to content

Commit 8b224a9

Browse files
committed
LoginEvent.java
LoginEvent.java
1 parent c9f351f commit 8b224a9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.hmkcode.event;
2+
3+
import java.util.Date;
4+
5+
import org.springframework.context.ApplicationEvent;
6+
7+
public class LoginEvent extends ApplicationEvent {
8+
9+
10+
private Date date;
11+
12+
public LoginEvent(Object source){
13+
super(source);
14+
this.date = new Date(getTimestamp());
15+
}
16+
17+
public Date getDate() {
18+
return date;
19+
}
20+
21+
public void setDate(Date date) {
22+
this.date = date;
23+
}
24+
}

0 commit comments

Comments
 (0)