From 0218a7548abf5024450b945f5f716e05c16132eb Mon Sep 17 00:00:00 2001 From: weihongyang <1075331873@qq.com> Date: Tue, 21 Jun 2022 14:46:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E6=9E=AA=E7=9B=91=E5=90=AC=E5=8F=AA=E5=9C=A8=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=AD=E5=90=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/cnbm/barcode/listener/GlobalKeyListenerExample.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ym-barcode/src/main/java/com/cnbm/barcode/listener/GlobalKeyListenerExample.java b/ym-barcode/src/main/java/com/cnbm/barcode/listener/GlobalKeyListenerExample.java index 98586d9..e031e4b 100644 --- a/ym-barcode/src/main/java/com/cnbm/barcode/listener/GlobalKeyListenerExample.java +++ b/ym-barcode/src/main/java/com/cnbm/barcode/listener/GlobalKeyListenerExample.java @@ -5,6 +5,7 @@ import com.github.kwhat.jnativehook.NativeHookException; import com.github.kwhat.jnativehook.keyboard.NativeKeyEvent; import com.github.kwhat.jnativehook.keyboard.NativeKeyListener; import lombok.extern.log4j.Log4j2; +import org.springframework.context.annotation.Profile; import org.springframework.stereotype.Component; import java.util.List; @@ -19,6 +20,7 @@ import java.util.stream.Collectors; */ @Log4j2 @Component +@Profile("prod") public class GlobalKeyListenerExample implements NativeKeyListener { static {