![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发
橘色汽水
致敬大师,致敬未来的你
展开
-
springboot 根据不同配置文件来设定常量的值
import org.springframework.beans.factory.annotation.Value;原创 2021-06-24 17:58:52 · 921 阅读 · 0 评论 -
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 · 172 阅读 · 0 评论