一、问题
最近在开发过程中遇到一个问题,使用sevenzipjbinding解压文件报 SevenZipJBinding wasn’t initialized successfully last time 异常
使用一个简单的案例复现一下,注意:程序首次启动后,多个线程同时执行解压的方法才会出现
@RestController
@RequestMapping("/test")
@Slf4j
public class TestContortller {
@GetMapping("/unRar")
public void unRar() {
String source = "D:\\temp\\test.rar";
String target = "D:\\temp\\test\\";
new Thread(() -> unRar(source, target + Thread.currentThread().getId