no commit message

devA
yuxue 5 years ago
parent f029addd95
commit 48ded30583

@ -40,6 +40,12 @@
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- 单元测试 支持 -->
<dependency>
<groupId>org.springframework.boot</groupId>
@ -147,7 +153,6 @@
<version>4.0.1-1.4.4</version>
</dependency> -->
</dependencies>

@ -19,14 +19,15 @@ public class CommandRunner implements CommandLineRunner {
@Override
public void run(String... args) {
/*try {
try {
String os = System.getProperty("os.name").toLowerCase();
if(os.contains("windows")) {
Runtime.getRuntime().exec("cmd /c start http://localhost:" + port + "/index");
// 默认浏览器打开
// Runtime.getRuntime().exec("cmd /c start http://localhost:" + port + "/index");
}
} catch (Exception ex) {
ex.printStackTrace();
log.error("打开默认浏览器异常", ex);
}*/
}
}
}

Loading…
Cancel
Save