Intellij $'\r': command not found 오류 (LF, CR)
intellij 2022. 3. 1. 15:38

문제점 linux나 mac 또는 windows에서 사용하는 shell script를 intellij에서 실행하려고 하면 아래와 같은 오류가 발생한다. build.sh: line 2: $'\r': command not found build.sh: line 4: $'\r': command not found error: invalid flag: softdrink/module-info.java Usage: javac use --help for a list of possible options : no such file or directory build.sh: line 9: $'\r': command not found 발생 사유 linux/mac에서 사용하는 파일의 format과 windows에서 사용하는 form..

Intellij Spring boot Hot Swap / Hot Deploy 설정하기
intellij 2022. 2. 16. 23:36

목적 Intellij 2021버전 이후 Intellij에서 Spring boot java class 파일이 수정되었을 때 Hot Swap or Hot Deploy를 진행하게 한다. Maven or Gradle 설정 Hot Swap 설정을 위해서는 Maven 또는 Gradle에 spring-boot-devtools를 추가해 준다. maven인경우 org.springframework.boot spring-boot-devtools gradle인경우 implementation 'org.springframework.boot:spring-boot-devtools:2.6.3' Intellij 설정 file > settings > Advanced Settings > Allow auto-make to start.... ..

Intellij cygwin 연동하기
intellij 2022. 1. 14. 17:09

Intellij 계열의 IDE를 이용할 때 cygwin을 default Teminal로 사용하고 싶을 수 있다. IDE에서 Terminal 최우측 화살표를 클릭한다. Settings를 선택한다. 위와 같은 setting화면이 나오면 "c:\cygwin64\bin\sh" -lic "cd ${OLDPWD-.}; bash" cygwin의 bash.exe path를 설정해 주고 Apply를 선택한다. 이제 tab에서 '+'를 클릭하면 cygwin teminal이 작동 되는 것을 확인 할 수 있다.

Intellij 에서 Spring Boot application.yml 또는 application.properties 를 못 읽어 올 때 (Resource 접근 안될 때)
intellij 2021. 6. 14. 15:03

Intellij 2019, Intellij 2020 버전에서 다음과 같이 Profile을 못 읽어 올 때가.. 솔직히 모든 경우 이랬다. No active profile set, falling back to default profiles: default 위와 같이 application.properties나 application.yml에 profile을 active 한다고 해도 gradle의 bootrun이 아닌 intellij에서 제공하는 Run 기능으로 진행 할 경우 위와 같이 이를 인식 하지 못한다. 정확히 말하자면 Run으로 Spring Boot를 실행하면 application.properties가 존재하는 resources 디렉토리 자체를 인식 하지 못하는 것이다. 아래 보면 bootRun을 Gr..

Intellij UTF 8 설정
intellij 2021. 5. 24. 12:43

아래와 같이 unmappable character for encoding x-windows-949 오류가 난다... 매번 이 오류를 마주 할 때마다 화가 난다 비슷한걸 매번 조회 하고 있는 나를 보며.. 아무튼 아래와 같이 오류가 나면 여러 곳을 확인해 봐야 한다. 설정의 File Encodings가 UTF-8로 설정 되어있는가? VM options에 UTF-8이 설정 되어 있는가.. 그런데 이게 매번 헷깔리는게 저 vmoptions 파일이 프로젝트와 연결된 것으로 잘 골라야 하는 것이다. 그래서 아래와 같이 Shift 2번을 누르면 나오는 Quick Bar에서 수정해 줘야 한다. 아래와 같이 UTF-8을 설정 해주고 재 실행 하면 잘 된다. 혹시 캐쉬가 남아 있어서 안될 수도 있다. 아래 invalid..

Intellij Editor 창 Font Size 변경
intellij 2021. 4. 26. 22:30

Intellij를 사용해서 강의를 하거나 Live coding을 할때 Editor창의 Font 크기를 쉽게 키우거나 작게 하고 싶을 때가 있다. 이때 다음 환경을 수정해 주면 된다. File > Settings >> Editor >> General Change font size (Zoom) with Ctrl + Mouse Wheel 그러면 컨트롤을 누르고 마우스 휠을 이용해서 Font의 사이즈를 자유롭게 수정이 가능하다.

Double Wildfly launching with Intellij to release wars duplicately
intellij 2020. 3. 27. 16:31

서로 다른 서비스를 갖는 프로젝트 2개가 있고 두개의 프로젝트가 intellij에서 동시에 wildfly(jboss) 상에서 실행 되어야 할때, 어떻게 로컬 세팅을 하는지에 대한 기록 임 전제 각 프로젝트는 독립 적으로 이미 작동 시킬 수 있는 상태이다. wildfly standalone 버전으로 서비스를 start할 거다 port는 서로 달라도 된다 Wildfly가 특정 폴더에 인스톨 되어있다. wildfly 설정 wildfly 디렉토리 이하 standalone 폴더를 하나더 copy한다. standalone2 라는 이름으로 standalone폴더와 같은 위치에 만든다 Wildfly > bin 디렉토리 이하 standalone.sh 또는 standalone.bat을 하나더 copy한다. standalo..