분류 전체보기(212)
-
[Maven] ojdbc 의존성
작성일 : 2018. 8. 6 출처 : https://www.mkyong.com/maven/how-to-add-oracle-jdbc-driver-in-your-maven-local-repository/
2023.08.01 -
Dockerfile
작성일 : 2018. 8. 20 Dockerfile 내용 : FROM debian:stable-slim MAINTAINER jh.han@mygenomebox.com RUN apt-get -y update COPY . /opt WORKDIR /opt RUN ln -s zulu8.31.0.1-jdk8.0.181-linux_x64 jdk "docker build" requires exactly 1 argument. See 'docker build --help'. Usage: docker build [OPTIONS] PATH | URL | - [flags] Build an image from a Dockerfile [mgblauncher@MGB-v2-FTP01 build]$ docker build --help ..
2023.08.01 -
Jedis - Redis(레디스) 자바 API
작성일 : 2018. 11. 19 JedisPoolConfig jedisPoolConfig = new JedisPoolConfig(); JedisPool pool = new JedisPool(jedisPoolConfig, "localhost"); Jedis jedis = pool.getResource(); Map m_value = new HashMap(); m_value.put("summary", "Moderate High"); m_value.put("status", "7444"); m_value.put("mesg_title", "error"); m_value.put("mesg_content", "exception"); jedis.hmset("R20181119333", m_value);//Map 으로 넣..
2023.08.01 -
[자바] 현재 실행 중인 위치가 IDE 인지, 아니면 jar 인지 확인하는 방법
작성일 : 2020. 9. 14. [API] getClass().getResource("").getProtocol(); getClass().getResource("") 를 IDE 에서 실행한 경우, "file:/C:/..." 처럼 앞에 `file:` 이 붙으며, getClass().getResource("") 를 jar 에서 실행한 경우, "jar:/..." 처럼 앞에 `jar:` 이 붙는다. 즉, toString() 으로 변환해서 앞에 붙는 문자열을 if 조건에서 검사하거나 Resource 클래스가 지닌 getProtocol() 메서드로 가져오는 방식이 있다. getProtocol() 결과 : file 또는 jar 문자열을 반환함. 출처) Can you tell on runtime if you're r..
2023.08.01 -
[자바] Swing - Flat Look and Feel 적용하기
작성일 : 2021. 5. 15 오랜만에 스윙 애플리케이션을 만들다가 리눅스 그놈 3.0 환경에서 허접한 기본 룩앤필을 보면서 대체물을 찾게 되었다. Flat Laf https://www.formdev.com/flatlaf/ https://github.com/JFormDesigner/FlatLaf Maven Repository 에서 복사해온 디펜던시 ↓ 그리고 GUI 작업을 하기 전에 FlatLightLaf.install() 을 호출하거나, 룩앤필 설정 라인에 UIManager.setLookAndFeel(new FlatLightLaf()) 를 넣으란다. 하지만, cannot find the class 같은 오류가 뜬다. 뭐냐면 FlatLightLaf 클래스를 못찾는다는 소린데 이걸 해결하려고 애를 쓰다가..
2023.08.01 -
[리눅스/윈도] awk : 필드 1개만 제외하고 전체 줄 출력하기
AWK 를 활용하면서도 말끔히 해결되지 못하고 기억 속 저편에 남아 있던 내 숙제. 다음과 같은 데이터 목록이 있다. $ history | grep sed > sed_grp $ cat sed_grp --- [실행결과] 369 sed -i '/.*노브랜드.*/s/$/ FOOD/g' PAY_LIST.txt 370 sed -i '/.*GS25.*/s/$/ CVS/g' PAY_LIST.txt 371 sed -i '/.*CU.*/s/$/ CVS/g' PAY_LIST.txt 372 sed -i '/.*이마트24.*/s/$/ CVS/g' PAY_LIST.txt 373 sed -i '/.*E-MART24.*/s/$/ CVS/g' PAY_LIST.txt 381 sed -i '/.*시장.*/s/$/ FOOD/g' PAY_..
2023.07.24