VirtualBox 5.0.30

Fedora 23/24/25 모두 해봄 (VirtualBox 4 버전에서 Fedora 25 버전은 잘 안되서 VirtualBox 5 버전으로 업그레이드 함)


yum update    
yum install kernel-devel-$(uname -r)
yum install gcc make

shutdown -r now

cd /var/run/media/root/VBOXADDITIONS_4.3.40_110317/
./VBoxLinuxAdditions.run 

shutdown -r now

Plugin

  1. Lombok - Settings > Build, Excuting, Deployment > Compiler > Annotaton Processors > Enable annotation processing 체크
  2. Grep Console
  3. Jrebel
  4. Presentation Assistant
  5. Lombok


Live Templates 설정

  1. addlog - Applicable in Java: declaration
    Edit Template Variables - Name=CLASSNAME, Expression=className()

    private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger($CLASSNAME$.class);
  2. dlog - Applicable in Java: expression
    Edit Template Variables - Name=VAR, Expression=completeSmart()

    logger.debug("===== $END$: {}", $VAR$);
  3. addtest - use static import if posible 체크

    @org.junit.Test
    public void test$EXPR$() {
    $END$
    org.junit.Assert.assertThat("업무", 1, org.hamcrest.Matchers.is(1));
    }


Windows Batch Script 심오하군...


특정 Tomcat Instance 찾아 KILL

@echo off
setlocal enableDelayedExpansion

# Command 에서는...
wmic process where "Name='java.exe' AND commandLine like '%test-app%'" delete

# Batch Script 에서는 "%" 변수에대한 접두사라서 LIKE 검색이 안되니 두개로... 그 안에 변수라면 아래와 같이 
wmic process where "Name='java.exe' AND commandLine like '%%%HTTPD_WORKER_NM%%%'" delete

Tomcat 기동여부 확인 - 해당 포트가 떠 있나 확인 후 있으면 PID 및 실행 문자열 출력

@echo off
setlocal enableDelayedExpansion

netstat -na | find "LISTENING" | find /C ":%AJP_PORT%" > tmpFile
set /P result=<tmpFile
del tmpFile

REM echo !result!
if !result!==0 (
	echo ===== TOMCAT IS STOPED =====
) else (
	echo ===== TOMCAT IS RUNNING =====
	wmic process where "Name='java.exe' AND commandLine like '%%%HTTPD_WORKER_NM%%%'" get commandLine, processid
)


+ Recent posts