更新后端,采用Springboot+mybatis
This commit is contained in:
12
src/test/java/Test.java
Normal file
12
src/test/java/Test.java
Normal file
@@ -0,0 +1,12 @@
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class Test {
|
||||
|
||||
public static void main(String args[]){
|
||||
Date date = new Date();
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String dateString = formatter.format(date);
|
||||
System.out.println(dateString);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package com.jsh.test;
|
||||
|
||||
public class MyRunnable implements Runnable {//实现Runnable接口
|
||||
public void run(){
|
||||
for(int i=0; i<30; i++){
|
||||
System.out.println(Thread.currentThread().getName()+"运行, "+i); //获取当前线程的名称
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package com.jsh.test;
|
||||
|
||||
public class MyThread {
|
||||
public static void main(String[] args) {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
MyRunnable mt = new MyRunnable(); //定义Runnable子类对象
|
||||
new Thread(mt, "第" + i + "个线程").start();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package com.jsh.test;
|
||||
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
//This is test
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user