作者 朱兆平

MVC配置

@@ -11,9 +11,12 @@ spring: @@ -11,9 +11,12 @@ spring:
11 mvc: 11 mvc:
12 #静态资源,设置上传文件的访问, 12 #静态资源,设置上传文件的访问,
13 static-path-pattern: /** 13 static-path-pattern: /**
  14 + view:
  15 + suffix: .html
  16 +# prefix: /templates/
14 17
15 resources: 18 resources:
16 - static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path} 19 + static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,classpath:/public/,classpath:/templates/,file:${web.upload-path}
17 20
18 application: 21 application:
19 name: customAnalysisReception 22 name: customAnalysisReception
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <script> 14 <script>
15 $(document).ready(function() { 15 $(document).ready(function() {
16 // 指定websocket路径 16 // 指定websocket路径
17 - var websocket = new WebSocket('ws://localhost:7003/log'); 17 + var websocket = new WebSocket('ws://localhost:10002/log');
18 websocket.onmessage = function(event) { 18 websocket.onmessage = function(event) {
19 // 接收服务端的实时日志并添加到HTML页面中 19 // 接收服务端的实时日志并添加到HTML页面中
20 $("#log-container div").append(event.data); 20 $("#log-container div").append(event.data);