본문 바로가기

반응형

Backend/Utils

(13)
[gitHub] GitHub기본 CLI 기본적인 업로드 작업 Flow# 변경 내용 업로드 준비git add .# 변경 내용 적용 상태git status# 업로드에 대한 코멘트 작성git commit -m “comment”# 수정 및 업로드 상태 변화 확인git log# 업로드 경로 확인git remote --v# 업로드 시작git push origin main Git branch작업# 브랜치 생성과 동시에 이동git checkout -b [브랜치 이름]# 브랜치 이동git checkout [브랜치 이름]# 브랜치 생성git branch [브랜치 이름]# 하위 브랜치 생성git branch [브랜치 이름] [상위 브랜치 이름] error: failed to push some refs to ~repository경로~원인 : push시 원격 rep..
[Wakatime] STS연동 IntelliJ의 경우에는 그냥 Plugin을 설치하면 되었는데STS는 잘 사용하지 않다보니 연동하는 방법을 몰랐어서 작성하게 되었다.Help\Eclipse Marketplace를 선택wakatime을 검색하고 Install을 클릭(나는 이미 설치되었기 때문에 Installed라고 표기됨)설치를 완료하고 STS를 재실행한다.실행 된 후에 File탭에 WakaTime이 생긴다. 그리고 API Key를 선택한다.그럼 이렇게 API-Key를 입력할 수 있는 팝업이 뜨는데 본인의 계정에서 API-Key를 복사해와 붙여넣고 OK를 누르면 된다.
[ngrok] HTTP로 만들어진 서버를 HTTPS 프로토콜로 터널링 다운로드 링크 : 링크" data-og-host="ngrok.com" data-og-source-url="https://ngrok.com/download" data-og-url="https://ngrok.com/download" data-og-image="https://scrap.kakaocdn.net/dn/clYdD8/hyVZneuXK6/JvTTlwnHzKkc9VfxNffL4K/img.png?width=2400&height=1256&face=0_0_2400_1256,https://scrap.kakaocdn.net/dn/jT7If/hyV2tqzHus/xZiO6XrkDNmUILJlXtGEj0/img.png?width=2400&height=1256&face=0_0_2400_1256"> Download$ ng..
[gitHub] You are in 'detached HEAD' state. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. 찾아보니 복구 후에 remote HEAD값과 local의 HEAD값이 안맞아서 그런것 같다. 맞춰주려 여러 시도를 해봤지만 실패해서 가장 깔끔하고 단순한 방법으로 진행했다. ## 현재 브런치 및 HEAD확인 git branch -a ## test브런치 생성 git checkout -b test 현재 branch를 확인해보고 새..
[POI] EXCEL업로드시 숫자타입 문자타입으로 변경 @Override public List uploadExcelFile(MultipartFile excelFile, Boolean dbInsertFlag, AdminSearchVO paramVO) { List list = new ArrayList(); Set groupCodes = new HashSet(); try { OPCPackage opcPackage = OPCPackage.open(excelFile.getInputStream()); XSSFWorkbook workbook = new XSSFWorkbook(opcPackage); XSSFSheet sheet = workbook.getSheetAt(0); for(int i=1; i
[POI] 엑셀 업로드시 중복값 체크 Set groupCodes = new HashSet(); ... XSSFCell cell = row.getCell(0); if(cell == null) { break; } if (null != cell) { String groupCode = cell.getStringCellValue(); if (groupCode.equals("")) { break; } // 중복을 확인하기 위해 varCode를 Set에 추가하고, 중복인 경우 해당 항목 스킵 if (groupCodes.contains(groupCode)) { continue; } data.setGroupCode(groupCode); groupCodes.add(groupCode); } if(null != cell) { data.setGroupCode(ce..
[gitHub]Large files detected. You may want to try Git Large File Storage GitHub에 push를 하던 중 그동안 못봤던 노란 글씨가 보여 놀랐다. 해당 경고문은 권장 최대 파일크기가 50MB인데 50MB가 넘는 파일을 업로드 하려고 했다고 나타나는 것이다. 확인해보니 100MB이상은 업로드가 되지 않아 100MB가 넘는 파일이 검출되면 에러가 발생한다고 한다. $ find . -type f -size +50M 파일 사이즈가 큰 것들은 해당 디렉토리로 이동해서 검색해본다. 나의 경우에는 단순 경고문인데다가 push가 되지 않더라도 크게 문제가 되지 않는 파일들이라 찾아본 해결책만 작성해보겠다. 해결방법 lfs 설치 $ git lfs install 관리할 파일 지정 $ git lfs track 경로/.../파일명 # e.g.) git lfs track project/largeF..
[Tiles] 프로젝트에 Tiles 적용 Tiles framework 란? 공식문서 Tiles allows authors to define page fragments which can be assembled into a complete pages at runtime. These fragments, or tiles, can be used as simple includes in order to reduce the duplication of common page elements or embedded within other tiles to develop a series of reusable templates. These templates streamline the development of a consistent look and feel across ..

반응형