Commit aaada5d7afb5908cc3b076fe60c0f2ca45ec0586
1 parent
f7edd40e
修改
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/ShenheApplication.java
| @@ -262,7 +262,9 @@ public class ShenheApplication extends SpringBootServletInitializer { | @@ -262,7 +262,9 @@ public class ShenheApplication extends SpringBootServletInitializer { | ||
| 262 | public static void main(String[] args) { | 262 | public static void main(String[] args) { |
| 263 | // SpringApplication.run(ShenheApplication.class, args); | 263 | // SpringApplication.run(ShenheApplication.class, args); |
| 264 | SpringApplicationBuilder builder=new SpringApplicationBuilder(ShenheApplication.class); | 264 | SpringApplicationBuilder builder=new SpringApplicationBuilder(ShenheApplication.class); |
| 265 | - builder.headless(false).run(args); | 265 | + builder.headless(true).run(args); |
| 266 | + // 设置Headless模式,linux系统下 | ||
| 267 | + System.setProperty("java.awt.headless", "true"); | ||
| 266 | } | 268 | } |
| 267 | 269 | ||
| 268 | /** | 270 | /** |