upgrade springboot-aop to spring boot 2
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
package com.xncoding.aop;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* MonitorBossAfterStart
|
||||
*
|
||||
* @author XiongNeng
|
||||
* @version 1.0
|
||||
* @since 2018/7/18
|
||||
*/
|
||||
@Component
|
||||
@Order(1)
|
||||
public class AfterStartRunner implements CommandLineRunner {
|
||||
|
||||
private Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
public void run(String... args) {
|
||||
logger.debug("after start debug...");
|
||||
logger.info("after start info...");
|
||||
}
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
package com.xncoding.aop;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class Application {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user