springboot你用过哪些注解

Chenyi_li / 2023-05-06 / 原文

@PostConstruct 注解的用途: 在当前对象加载完依赖注入的 bean 后,运行这个被 @PostConstruct 注解的方法,而且只运行一次。