摘要: @PostConstruct对于注入到Spring容器中的类,在其成员函数前添加@PostConstruct注解,则在执行Spring beans初始化时,就会执行该函数。但由于该函数执行时,其他Spring beans可能并未初始化完成,因此在该函数中执行的初始化操作应当不依赖于其他Spring 阅读全文
posted @ 2021-11-20 12:30 wujf 阅读(3421) 评论(0) 推荐(0) 编辑