Commit f1c48fc5 authored by 张征龙's avatar 张征龙

一直打log

parent d44a13bd
package cn.com.duiba.miria.project.test;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@Slf4j
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication sa = new SpringApplication(Application.class);
sa.run(args);
java.lang.Thread t=new java.lang.Thread(new Runnable() {
@Override
public void run() {
try {
while(true) {
log.info("log test,time:{}", System.currentTimeMillis());
Thread.sleep(3000);
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
});
t.run();
}
}
......@@ -29,7 +29,8 @@ public class MonitorController {
public String check(){
String res="ok";
log.info("连接{}",res);
log.info(""+System.currentTimeMillis());
log.info(""+System.currentTimeMillis());
return res;
}
@RequestMapping(value = "test",method = RequestMethod.GET)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment