Commit 71f27b11 by QIANGLU

添加加载器

parent 5904f328
...@@ -36,6 +36,15 @@ ...@@ -36,6 +36,15 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator-autoconfigure</artifactId> <artifactId>spring-boot-actuator-autoconfigure</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
package com.secoo.mall.logs.boot;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.util.StringUtils;
/**
* 用于启动后数据加载
* @author qianglu
*/
public class MatrixApplicationRunner implements ApplicationRunner {
private String url;
public MatrixApplicationRunner(String url) {
if(!StringUtils.isEmpty(url)){
this.url = url;
}
}
@Override
public void run(ApplicationArguments args) throws Exception {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment