修复bug

main
刘政 2 weeks ago
parent e13645639e
commit 198c50c082

@ -10,8 +10,8 @@ import org.springframework.stereotype.Service;
* Package: com.sz.admin.monitor.listener.event * Package: com.sz.admin.monitor.listener.event
* Description: * Description:
*/ */
@Slf4j //@Slf4j
@Service //@Service
public class ApplicationEventListener { public class ApplicationEventListener {
/** /**
* *
@ -21,6 +21,6 @@ public class ApplicationEventListener {
// 监听ApplicationContext 初始化完成后的事件 // 监听ApplicationContext 初始化完成后的事件
// @EventListener // @EventListener
public void onApplicationEvent(ContextRefreshedEvent event) { public void onApplicationEvent(ContextRefreshedEvent event) {
log.info("执行相关的操作"); //log.info("执行相关的操作");
} }
} }

@ -14,6 +14,7 @@ import com.sz.admin.monitor.utils.*;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.io.File;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@ -153,7 +154,7 @@ public class HkNVR extends AbstractNVR {
if (osSelect.isWindows()) if (osSelect.isWindows())
//win系统加载SDK库路径 //win系统加载SDK库路径
{ {
strDllPath = CommonKit.class.getClassLoader().getResource("").getPath().substring(1) + "lib/win/HCNetSDK.dll"; strDllPath = CommonKit.class.getClassLoader().getResource("").getPath().substring(1) + "lib\\win\\HCNetSDK.dll";
} else if (osSelect.isLinux()) } else if (osSelect.isLinux())
//Linux系统加载SDK库路径 //Linux系统加载SDK库路径
{ {

Loading…
Cancel
Save