作者 朱兆平

MVC配置

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