diff --git a/src/main/java/cactusServer/utils/App.java b/src/main/java/cactusServer/utils/App.java index 6855c11..4e1b959 100644 --- a/src/main/java/cactusServer/utils/App.java +++ b/src/main/java/cactusServer/utils/App.java @@ -1,5 +1,7 @@ package cactusServer.utils; +import java.util.Timer; + import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @@ -20,4 +22,8 @@ Accounts.getInstance().createAcount("aaa", "bbb", "c"); System.out.println("pass"); } + void main() { + Timer timer1 = new Timer(); + timer1.schedule(new Task(), 0, 1000); + } } \ No newline at end of file