提交 03daaff3 编写于 作者: S shenhongxi

CommandLineRunner

上级 7c97e9e7
package com.itlong.whatsmars.spring.boot.controller;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
* Created by shenhongxi on 2017/6/29.
*/
@Component
@Order(value = 1)
public class InitRunner implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
System.out.println("init......");
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册