|
|
@ -30,6 +30,15 @@ public class MyCommandRunner implements CommandLineRunner {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void run(String... args) throws Exception {
|
|
|
|
public void run(String... args) throws Exception {
|
|
|
|
// ossImgService.downloadFile();
|
|
|
|
// ossImgService.downloadFile();
|
|
|
|
|
|
|
|
String cmd = command +" "+ loginUrl;
|
|
|
|
|
|
|
|
Runtime run = Runtime.getRuntime();
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
|
|
|
run.exec(cmd);
|
|
|
|
|
|
|
|
logger.debug("启动浏览器打开项目成功");
|
|
|
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
logger.error(e.getMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|