SpringBoot调用dll文件,idea运行没问题,打jar包以后报错
报错信息:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'downTaskController': Unsatisfied dependency expressed through field 'hikConfigService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hikConfigService': Unsatisfied dependency expressed through field 'hikvisionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getHikvisionConfigure' defined in class path resource [cn/net/dmx/hikvisiondownload/config/HikvisionConfigure.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.net.dmx.hikvisiondownload.config.HikvisionManager]: Factory method 'getHikvisionConfigure' threw exception; nested exception is java.lang.UnsatisfiedLinkError: Unable to load library 'F:\dmx\HikvisionDownload\target\hikdownload.jar!\BOOT-INF\classes!\hikLib\HCNetSDK.dll': ???????¨