摘要:
Life Cycle in Detail:-1-When a server loads a servlet, it runs the servlet's init method. Even though most servlets are run in multi-threaded servers, 阅读全文
摘要:
public class ShutdownHook { private static final ShutdownHook INSTANCE = new ShutdownHook(); private List executorServices = Lists.newArrayList(); private AtomicBoolean closed = new At... 阅读全文
摘要:
Stopwatch stopwatch =newStopwatch().start(); //do something test for(int i =0; i <10000; i++){ } long nanos = stopwatch.elapsed(TimeUnit.NANOSECONDS); System.out.println(nanos); 阅读全文
摘要:
Spring Boot 介绍 Spring Boot 是由 Pivotal 团队提供的全新框架,其设计目的是用来简化新 Spring 应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。用我的话来理解,就是 Spring Boot 其实不是什么新的框 阅读全文