liuxiaolong
2019-05-06 e67c6fb4ae7586ac4c5a217e98e5f6a816f47474
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.cloud.count;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
 
import java.io.IOException;
 
@ComponentScan({"com.cloud.count.*"})
@SpringBootApplication
public class CountApplication {
 
    public static void main(String[] args){
 
        SpringApplication.run(CountApplication.class, args);
        final Runtime runtime = Runtime.getRuntime();
        String [] brs = new String[2];
        brs[0] ="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe";
        brs[1]="C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe";
        for(String str : brs){
            try {
                runtime.exec(str);
//                break;
            } catch (IOException e){
 
            }
        }
    }
}