importorg.springframework.boot.CommandLineRunner;importorg.springframework.core.annotation.Order;importorg.springframework.stereotype.Component;/** * Created by shenhongxi on 2017/6/29. */@Component@Order(value=1)publicclassInitRunnerimplementsCommandLineRunner{@Overridepublicvoidrun(String...args)throwsException{System.out.println("init......");}}