mysterin / question_and_answer

1 stars 0 forks source link

springboot 启动执行任务 #105

Closed mysterin closed 5 years ago

mysterin commented 5 years ago

实现 CommandLineRunner 接口, 然后用 @Component 注解修饰类即可.