Commit a9d5ae59ceea2fbcebf0c33e436163827f98f313
1 parent
bdfadee3
update...
Showing
6 changed files
with
27 additions
and
6 deletions
pom.xml
| ... | ... | @@ -178,6 +178,21 @@ |
| 178 | 178 | <groupId>org.springframework.boot</groupId> |
| 179 | 179 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 180 | 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 | 196 | </plugins> |
| 182 | 197 | <resources> |
| 183 | 198 | <resource> | ... | ... |
src/main/java/com/bsth/StartCommand.java
| ... | ... | @@ -46,6 +46,9 @@ public class StartCommand implements CommandLineRunner{ |
| 46 | 46 | //启动时加载所有资源 |
| 47 | 47 | invocationSecurityMetadataSourceService.loadResourceDefine(); |
| 48 | 48 | |
| 49 | + //同步屏 LED 推送服务 | |
| 50 | + ledHttpPushHandler.start(); | |
| 51 | + | |
| 49 | 52 | //signal、牌照识别、查询一体机数据消费队列 |
| 50 | 53 | SignalAndAttConsumeQueue.start(); |
| 51 | 54 | |
| ... | ... | @@ -61,9 +64,6 @@ public class StartCommand implements CommandLineRunner{ |
| 61 | 64 | |
| 62 | 65 | //泊位数据刷新 |
| 63 | 66 | sexec.scheduleWithFixedDelay(berthCacheRefreshThread, 60 * 15, 60 * 15, TimeUnit.SECONDS); |
| 64 | - | |
| 65 | - //同步屏 LED 推送服务 | |
| 66 | - ledHttpPushHandler.start(); | |
| 67 | 67 | } catch (Exception e) { |
| 68 | 68 | e.printStackTrace(); |
| 69 | 69 | } | ... | ... |
src/main/java/com/bsth/data/led_http/LedHttpPushHandler.java
src/main/resources/application.properties
| 1 | 1 | spring.profiles: dev,prod |
| 2 | -spring.profiles.active: dev | |
| 2 | +spring.profiles.active: prod | |
| 3 | 3 | |
| 4 | 4 | spring.view.suffix=.html |
| 5 | 5 | server.session-timeout=-1 |
| ... | ... | @@ -11,6 +11,11 @@ multipart.maxFileSize = -1 |
| 11 | 11 | # Total request size for a multipart/form-data |
| 12 | 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 | 19 | server.compression.enabled=true |
| 15 | 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