2023-07-02 15:39:06.739 ERROR 813586 --- [ main] c.n.h.config.HikVisionAutoConfiguration : 加载playControl失败}
java.io.FileNotFoundException: class path resource [sdk/linux/libPlayCtrl.so] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/user01/hk_dev/hk_rtsp-1.0-SNAPSHOT.jar!/BOOT-INF/classes!/sdk/linux/libPlayCtrl.so
2023-07-02 15:39:06.739 ERROR 813586 --- [ main] c.n.h.config.HikVisionAutoConfiguration : 加载playControl失败} java.io.FileNotFoundException: class path resource [sdk/linux/libPlayCtrl.so] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/user01/hk_dev/hk_rtsp-1.0-SNAPSHOT.jar!/BOOT-INF/classes!/sdk/linux/libPlayCtrl.so
解决方案如下:
根据海康的设备sdk使用手册 --- 动态库环境配置 ,把sdk放在linux系统的/usr/lib文件下即可。 然后再 application.yml 文件里配置如下:
hik: sdk-path: /usr/lib