提交增加运维管理
This commit is contained in:
@@ -49,6 +49,7 @@ public enum TopicType {
|
||||
/*** webSocket转发前端使用 ***/
|
||||
WS_SERVICE_INVOKE(2,16,"/ws/service", "WS服务调用"),
|
||||
WS_LOG_INVOKE(2,17,"/ws/log","ws下发指令日志"),
|
||||
WS_SERVICE_ALERT(2,16,"/ws/alert", "WS告警推送"),
|
||||
|
||||
|
||||
/*** 模拟设备使用 ***/
|
||||
|
||||
@@ -82,6 +82,9 @@ public class SecurityUtils
|
||||
return SecurityContextHolder.getContext().getAuthentication();
|
||||
}
|
||||
|
||||
public static void setAuthentication(Authentication authentication) {
|
||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
||||
}
|
||||
/**
|
||||
* 生成BCryptPasswordEncoder密码
|
||||
*
|
||||
@@ -136,4 +139,7 @@ public class SecurityUtils
|
||||
return "en-US";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user