소스 검색

fix: 修改扫码枪监听只在生产环境中启用

pull/1/head
weihongyang 2 년 전
부모
커밋
0218a7548a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      ym-barcode/src/main/java/com/cnbm/barcode/listener/GlobalKeyListenerExample.java

+ 2
- 0
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 {


불러오는 중...
취소
저장