We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f351f commit 8b224a9Copy full SHA for 8b224a9
spring-custom-event/src/main/java/com/hmkcode/event/LoginEvent.java
@@ -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