摘要: 在Springboot开发的过程中,我们有时候需要在项目启动的时候提前加载或者执行一些类。 https://www.671bc1.com/Enter/home.html一共使用过三种方法: 1、使用@PostConstruct注解; @Componentpublic class MyPostCons 阅读全文
posted @ 2025-04-04 11:50 狗狗听话 阅读(652) 评论(0) 推荐(0)