Spring Boot CommandLineRunner的使用
摘要:1. 说明 程序在启动完成的时候需要去处理某些业务,因此Spring Boot程序中需要去实现CommandLineRunner接口。 2. CommandLineRunner方法执行顺序 程序启动后,会执行接口重写的run方法,如果有多个Service的话,执行是有顺序的,可以在类上添加Order
阅读全文
posted @ 2019-10-23 17:19
posted @ 2019-10-23 17:19
posted @ 2019-05-23 20:48
posted @ 2019-04-23 16:36
posted @ 2019-01-21 15:38