diff --git a/openhis-server-new/core-common/src/main/java/com/core/common/exception/ServiceException.java b/openhis-server-new/core-common/src/main/java/com/core/common/exception/ServiceException.java index fcfa3ecf..cb0a8e8b 100644 --- a/openhis-server-new/core-common/src/main/java/com/core/common/exception/ServiceException.java +++ b/openhis-server-new/core-common/src/main/java/com/core/common/exception/ServiceException.java @@ -21,7 +21,7 @@ public final class ServiceException extends RuntimeException { /** * 错误明细,内部调试错误 * - * 和 {@link CommonResult#getDetailMessage()} 一致的设计 + * 和 */ private String detailMessage; diff --git a/openhis-server-new/core-framework/src/main/java/com/core/framework/config/SecurityConfig.java b/openhis-server-new/core-framework/src/main/java/com/core/framework/config/SecurityConfig.java index cce46c80..10d07f47 100644 --- a/openhis-server-new/core-framework/src/main/java/com/core/framework/config/SecurityConfig.java +++ b/openhis-server-new/core-framework/src/main/java/com/core/framework/config/SecurityConfig.java @@ -103,6 +103,9 @@ public class SecurityConfig { // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**") .permitAll() + // WebSocket 握手请求允许匿名访问 + .antMatchers("/ws/**", "/test-ws") + .permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**") .permitAll() .antMatchers("/patientmanage/information/**") diff --git a/openhis-server-new/openhis-application/pom.xml b/openhis-server-new/openhis-application/pom.xml index e6db15b9..dd0efeab 100644 --- a/openhis-server-new/openhis-application/pom.xml +++ b/openhis-server-new/openhis-application/pom.xml @@ -69,6 +69,13 @@ org.apache.velocity velocity-engine-core + + + + org.springframework.boot + spring-boot-starter-websocket + +

{{ departmentName }}

-
{{ currentTime }}
+
+ +
{{ currentTime }}
+
@@ -31,19 +36,19 @@ -