2019年11月8日

摘要: package springAnnotions; import java.util.Map; import org.springframework.web.bind.annotation.CookieValue; import org.springframework.web.bind.annotat 阅读全文

posted @ 2019-11-08 23:00 GLLegolas 阅读(217) 评论(0) 推荐(0)

摘要: 之前使用java线程池,都是先自己通过实现ThreadPoolExecutor写线程池类,然后写多线程类,用线程池的execute方法去执行多线程类类。 在spring中,可以通过@Async(value="beanId")注解来使用线程池进行多线程编程。 线程池的创建有两种方式,一种是配置文件,一 阅读全文

posted @ 2019-11-08 00:31 GLLegolas 阅读(1052) 评论(0) 推荐(0)