Results 2 issues of Allen

使用的基础镜像是:alpine Error: Error loading shared library libpng12.so.0: No such file or directory (needed by /app/node_modules/canvas-prebuilt/canvas/build/Release/canvas.node) 2019/8/28 上午10:23:08 at Object.Module._extensions..node (internal/modules/cjs/loader.js:717:18) 2019/8/28 上午10:23:08 at Module.load (internal/modules/cjs/loader.js:598:32) 2019/8/28 上午10:23:08 at tryModuleLoad (internal/modules/cjs/loader.js:537:12)...

你好,看了你关于接口限流的代码,学到了很多东西。 LocalLockServiceImpl类中使用synchronized (this)对代码块加上了实例锁,在跑APP.java的main方法时,偶尔会出现并发问题,程序会抛出java.lang.IllegalMonitorStateException异常。感觉需要改成synchronized #(LocalLockServiceImpl.class),将同步的代码块变成一个类锁。 private ReentrantLock initAndGetLock(String source) { ReentrantLock reentrantLock = lockMap.get(source); if (null == reentrantLock) { **synchronized (this)** { reentrantLock = lockMap.get(source); if (null == reentrantLock) { reentrantLock...