no commit message

devA
yuxue 5 years ago
parent f029addd95
commit 48ded30583

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

@ -19,14 +19,15 @@ public class CommandRunner implements CommandLineRunner {
@Override @Override
public void run(String... args) { public void run(String... args) {
/*try { try {
String os = System.getProperty("os.name").toLowerCase(); String os = System.getProperty("os.name").toLowerCase();
if(os.contains("windows")) { 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) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
log.error("打开默认浏览器异常", ex); log.error("打开默认浏览器异常", ex);
}*/ }
} }
} }

Loading…
Cancel
Save