- 博客(2)
- 收藏
- 关注
原创 springboot 根据不同配置文件来设定常量的值
import org.springframework.beans.factory.annotation.Value;
2021-06-24 17:58:52
904
原创 springboot启动服务时执行任务
/** * * 服务启动时,@ComponentScan扫描到@Component后,将FileDownloadRunner装入spring容器中时执行 * 任务 * */ @Component public class FileDownloadRunner implements CommandLineRunner { private Logger log = LoggerFactory.getLogger(this.getClass()); @Over.
2021-06-24 17:04:44
169
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人