11 2021 档案

摘要:@PostConstruct对于注入到Spring容器中的类,在其成员函数前添加@PostConstruct注解,则在执行Spring beans初始化时,就会执行该函数。但由于该函数执行时,其他Spring beans可能并未初始化完成,因此在该函数中执行的初始化操作应当不依赖于其他Spring 阅读全文
posted @ 2021-11-20 12:30 wujf 阅读(3489) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { //允许最大的登录数 int slots=10; ExecutorService executorService = Executors.newFixedThreadPool(slots); LoginQueueUsi 阅读全文
posted @ 2021-11-11 18:25 wujf 阅读(74) 评论(0) 推荐(0) 编辑
摘要:package com.pj.project4sp; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com. 阅读全文
posted @ 2021-11-04 11:10 wujf 阅读(61) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示