Commit a9d5ae59ceea2fbcebf0c33e436163827f98f313

Authored by 潘钊
1 parent bdfadee3

update...

@@ -178,6 +178,21 @@ @@ -178,6 +178,21 @@
178 <groupId>org.springframework.boot</groupId> 178 <groupId>org.springframework.boot</groupId>
179 <artifactId>spring-boot-maven-plugin</artifactId> 179 <artifactId>spring-boot-maven-plugin</artifactId>
180 </plugin> 180 </plugin>
  181 + <plugin>
  182 + <groupId>org.springframework.boot</groupId>
  183 + <artifactId>spring-boot-maven-plugin</artifactId>
  184 + <configuration>
  185 + <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  186 + </configuration>
  187 + <!-- mvn spring-boot:repackage -->
  188 + <executions>
  189 + <execution>
  190 + <goals>
  191 + <goal>repackage</goal>
  192 + </goals>
  193 + </execution>
  194 + </executions>
  195 + </plugin>
181 </plugins> 196 </plugins>
182 <resources> 197 <resources>
183 <resource> 198 <resource>
src/main/java/com/bsth/StartCommand.java
@@ -46,6 +46,9 @@ public class StartCommand implements CommandLineRunner{ @@ -46,6 +46,9 @@ public class StartCommand implements CommandLineRunner{
46 //启动时加载所有资源 46 //启动时加载所有资源
47 invocationSecurityMetadataSourceService.loadResourceDefine(); 47 invocationSecurityMetadataSourceService.loadResourceDefine();
48 48
  49 + //同步屏 LED 推送服务
  50 + ledHttpPushHandler.start();
  51 +
49 //signal、牌照识别、查询一体机数据消费队列 52 //signal、牌照识别、查询一体机数据消费队列
50 SignalAndAttConsumeQueue.start(); 53 SignalAndAttConsumeQueue.start();
51 54
@@ -61,9 +64,6 @@ public class StartCommand implements CommandLineRunner{ @@ -61,9 +64,6 @@ public class StartCommand implements CommandLineRunner{
61 64
62 //泊位数据刷新 65 //泊位数据刷新
63 sexec.scheduleWithFixedDelay(berthCacheRefreshThread, 60 * 15, 60 * 15, TimeUnit.SECONDS); 66 sexec.scheduleWithFixedDelay(berthCacheRefreshThread, 60 * 15, 60 * 15, TimeUnit.SECONDS);
64 -  
65 - //同步屏 LED 推送服务  
66 - ledHttpPushHandler.start();  
67 } catch (Exception e) { 67 } catch (Exception e) {
68 e.printStackTrace(); 68 e.printStackTrace();
69 } 69 }
src/main/java/com/bsth/data/led_http/LedHttpPushHandler.java
@@ -97,6 +97,7 @@ public class LedHttpPushHandler { @@ -97,6 +97,7 @@ public class LedHttpPushHandler {
97 } 97 }
98 98
99 public void start() { 99 public void start() {
  100 + System.out.println("start led push server...");
100 thread.start(); 101 thread.start();
101 } 102 }
102 103
src/main/resources/application.properties
1 spring.profiles: dev,prod 1 spring.profiles: dev,prod
2 -spring.profiles.active: dev 2 +spring.profiles.active: prod
3 3
4 spring.view.suffix=.html 4 spring.view.suffix=.html
5 server.session-timeout=-1 5 server.session-timeout=-1
@@ -11,6 +11,11 @@ multipart.maxFileSize = -1 @@ -11,6 +11,11 @@ multipart.maxFileSize = -1
11 # Total request size for a multipart/form-data 11 # Total request size for a multipart/form-data
12 multipart.maxRequestSize = -1 12 multipart.maxRequestSize = -1
13 13
  14 +spring.http.encoding.force=true
  15 +spring.http.encoding.charset=UTF-8
  16 +spring.http.encoding.enabled=true
  17 +server.tomcat.uri-encoding=UTF-8
  18 +
14 server.compression.enabled=true 19 server.compression.enabled=true
15 server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript 20 server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript
16 21
src/main/resources/static/index.html
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 -<html lang="zh-cmn-Hans"> 2 +<html>
3 <head> 3 <head>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
5 <title>调派管理</title> 5 <title>调派管理</title>
src/main/resources/static/login.html
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 -<html lang="zh-cmn-Hans"> 2 +<html>
3 <head> 3 <head>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
5 <title>调派系统 -登录</title> 5 <title>调派系统 -登录</title>