본문 바로가기

전체 글140

[VSCode] 단축키 모음 control + ` : View - terminal command + K + 0 (숫자) : 코드 전체 접기 command + K + J : 코드 전체 펼치기 opt + command + [ : 선택 영역 접기 opt + command + ] : 선택 영역 펼치기 command + shift + -> : 현재 커서에서 전체 줄 선택 control + shift + -> : 현재 커서에서 특정 단위 (변수, 기호, 연산자..) 선택 opt + command + 방향키 : 다중 커서. 여러줄 선택 opt + 마우스 왼쪽 클릭 : 다중 커서. 여러줄 선택 2024. 1. 3.
[Git] 강제 pull 하기 Git 강제 pull 1) remote repository에서 최신 commit 정보 가져와 2) head를 옮긴 후 3)받아오기 1. remote repository에서 최신 commit 정보 가져오기 git fetch --all 2. head를  해당 repository branch의 최신 commit을 가리키게 하기 git reset --hard origin/ git reset --hard origin/master 3. local에 commit 을 병합 git pull 참고 : https://frontdev.tistory.com/entry/GIT-Conflict%EC%B6%A9%EB%8F%8C-%EB%82%AC%EC%9D%84-%EB%95%8C-%EA%B0%95%EC%A0%9C%EB%A1%9C-P.. 2023. 11. 2.
[Git] git clone 특정 브랜치 git 특정 브랜치 clone 하기 리포지토리를 클론한 다음 모든 브랜치들을 가져온다(fetch). 그리고나서 특정한 브랜치로 전환(checkout)한다. git clone --branch 또는 git clone -b 참고 : https://www.freecodecamp.org/korean/news/git-clone-branch-how-to-clone-a-specific-branch/ 2023. 11. 1.
[Spring/ Error] Web server failed to start. Port 8080 was already in use. 오류 : Web server failed to start. Port 9091 was already in use. 9091 포트가 이미 실행 중인데 스프링 프로젝트롤 또 실행할 경우 오류 발생 해결방법 : lsof -i tcp:{Port 번호} 의 결과로 나온 현재 Port로 실행중인 PID 번호 를 kill 해준다. sudo kill -9 {PID번호} 그리고 패스워드 입력 그러면 해당 Port로 실행 중인 프로세스를 죽일 수 있다. 참고 : https://dundung.tistory.com/148 2023. 10. 12.
[Spring/Error] No serializer found for class 오류 : No serializer found for class ... and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) Serialize : Object to JSON Deserialize : JSON to Object the default configuration of an ObjectMapper instance is to only access properties that are public fields or have public getters/setters. Jackson 라이브러리의 ObjectMapper는 Serialize 할.. 2023. 10. 10.
[IntelliJ/Spring] 단축키 모음 command + p : Parameter Info command + option + v : introduce Variable (반환 타입) option + enter : show Context Action command + option + n : inline 단축키 control + t : 검색 F2 : 오류 난 곳으로 이동 command + shift + T : 테스트 코드 만들기 option + enter : Assertions static으로 만들기 command + option + v : 타입 자동 완성 command + e : 히스토리 command + e + enter : 이전으로 돌아가기 command + option + M : extract method ctrl + r : 기존의 마지막 .. 2023. 8. 27.