springboot设置项目启动时执行指定方法

在需要指定执行的方法上加上

@PostConstruct

猜你喜欢

转载自blog.csdn.net/weixin_39654286/article/details/94733088