|
|
@@ -13,6 +13,8 @@ import org.springframework.context.annotation.FilterType;
|
|
|
)*/
|
|
|
public class WebApplication {
|
|
|
public static void main(String[] args) {
|
|
|
+ // 设置 websocket 默认 buffer 字节大小(1 MB)
|
|
|
+ System.setProperty("org.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE", "1024000");
|
|
|
SpringApplication.run(WebApplication.class, args);
|
|
|
}
|
|
|
}
|