add 취소하기 : staged 상태를 unstage 로 변경 $ git restore --staged {파일명} $ git restore --staged ../batch/src/main/kotlin/com/beside/backend/batch/job/wisesaying/WiseSayingJobConfiguration.kt $ git status On branch daeun Changes to be committed: (use "git restore --staged ..." to unstage) new file: ../api/src/test/kotlin/com/beside/backend/api/service/emotion/EmotionServiceTest.kt Changes not staged for c..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/CyNMe/btrZhTNRZ3k/bqYtgfJUXFp2vfmZkki3PK/img.png)
피치 못할 사정으로... 쓰고 있던 젠킨스에 접근을 못하게 되어 수동으로 배포할 일이 생겼다. 이참에 리눅스에 jar 파일로 배포하는 법도 익힐겸 수동 배포를 해보았다. 깃허브 연동하여 배포하는 방법은 차차 해봐야겠다.! 젠킨스 만세...!! * 리눅스 서버 배포 ? 로컬에서 프로젝트를 배포하여 새로 시작할 때는 IDE로 손쉽게 Run 버튼을 누르면 되지만, 리눅스 서버에서 배포하기 위해서는 jar 파일을 실행해 줘야 한다. jar 파일 빌드하기 1. 우측 Gradle 탭 - 배포하고자할 모듈 - build - bootJar 실행 2. 좌측 프로젝트 - 배포할 모듈 - build - libs 폴더에서 생성된 jar파일 여기서 생성된 jar파일을 Linux 서버에 옮겨 실행하면 배포 된다. 서버에 JDK ..
프로세스가 정상적으로 동작하고 있는지를 확인 ps -ef | grep java : 현재 실행되고 있는 java 관련 프로세스가 있는지 확인한다. $ ps -ef | grep java root 14188 14162 0 Feb06 ? 00:39:45 java -jar -Dspring.profiles.active=dev /api.jar root 43501 42301 9 18:46 pts/0 00:00:26 java -jar api.jar root 44611 42301 0 18:51 pts/0 00:00:00 grep java 프로세스 중지 kill -9 {pid(프로세스번호)} $ kill -9 43501
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/doVcyP/btrZa3RjYGN/h55tnVG1a1x2N7NhndiWX0/img.png)
지금 해결 못하고 있는 에러 물어보기 Resolve this issue. Could not autowire. No beans of 'JobBuilderFactory' type found. This error message indicates that the JobBuilderFactory class is not found in the application context. This can happen for several reasons, including: The required library or dependencies are missing in your project. The class is not correctly imported in your code. The class is not annotated..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/bA6QpX/btrYUacEPxz/1QEOvneG9EHpMVWuk4EN9k/img.png)
Firebase 프로젝트 생성 https://console.firebase.google.com/u/0/ 로그인 - Google 계정 이메일 또는 휴대전화 accounts.google.com Firebase Storage 시작하기 Cloud Storage 설정 1. 프로덕션 모드에서 시작 2. asia-northeast3 선택 읽기, 쓰기 권한 true 1. Rules 에서 권한 수정 2. 게시 버튼 클릭 allow read, write: if false; // -> true로 변경해줘야 읽고 쓰기 가능 allow read, write: if true; URL 규칙 다음 순서대로 작성해주면 된다. 1. https://firebasestorage.googleapis.com/v0/b/ 2. bucket 폴더 ..
사용중인 포트 찾기 lsof -i :포트번호 lsof = list open files lsof -i :8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 800 daeun 8u IPv6 0x27ada903c078e0a7 0t0 TCP localhost:http-alt (LISTEN) java 92939 daeun 82u IPv6 0x27ada903d0e60527 0t0 TCP *:http-alt (LISTEN) Kill 하기 kill -9 PID kill -9 92939
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/ezP1kP/btrYUT2EytH/d8WnHR08Ly0doSIqXtR2I1/img.png)
git stash * git add 명령어로 한번이라도 index 영역에 트래킹 된 파일만 stash영역에 저장한다. stash로 파일 임시 저장하기 저장하기 tracked 된 파일 모두 stash git stash 저장하기 + 명칭추가 : save git stash save "설명" 목록보기 : list git stash list 적용하기 1 : apply : 적용 후에도 리스트에 유지 git stash apply 가장 최근의 stash 적용 * 원하는 저장이력 적용 git stash apply stash@{숫자} ex) git stash apply 2 적용하기 2 : pop 적용 후 리스트에서 삭제 git stash pop 가장 최근의 stash 적용되고 삭제 * 원하는 저장이력 적용 git stas..
에러메세지 java.lang.NumberFormatException: For input string: "aaa@kakao.com" 원인 숫자가 아닌 문자열 (aaa@kakao.com 전부)이 포함된 문자열을 변환하면 NumberFormatException 발생 해결방법 1. 숫자 데이터에 toLong() 을 사용한다. 2. NumberFormatException에 대한 try catch 예외처리 String.toLong() String.toLong()는 문자열을 Long으로 변환하여 리턴 val str: String = "1234" val num: Long = str.toLong() print("num : $num") Output: num : 1234 NumberFormatException 숫자가 아닌 ..
브랜치 생성, 삭제, 조회, 체크아웃 브랜치 생성 git branch 생성할브랜치명 분기해서나올브랜치명 $ git branch testbranch master -> master 브랜치에서 testbranch 이라는 브랜치를 생성한다. 브랜치 삭제 로컬 브랜치 삭제 git branch -d 브랜치명 $ git branch -D branchname Deleted branch branchname (was e7f33f9). -d 옵션 : 브랜치에 병합되지 않은 변경 사항, 푸시되지 않은 commit 이력이 있으면 -d 로 로컬 브랜치를 삭제할 수 없다. 이런 경우 -D 옵션을 이용하여 브랜치를 삭제할 수 있다. git branch -D 로컬브랜치명 -D 옵션 : --delete --force(강제 삭제)의 줄임..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/9wNh1/btrYVhIVwG9/dDWEUV0mcolMdIJA4whmbK/img.png)
Enum 클래스를 만들고, Entity의 해당하는 컬럼을 Enum클래스로 type 변경 enum class BookType { COMPUTER, ECONOMY, SOCIETY, LANGUAGE, SCIENCE, } //val type: String, val type: BookType, 컬럼에 Enum 타입을 지정해주지 않으면? 디비에 0, 1, 2,... 처럼 순서대로 숫자 데이터가 들어간다. 문제점 1. 기존 Enum 의 순서가 바뀌면 치명적인 오류가 발생할 수 있다.! 2. 기존 Enum 타입의 삭제, 추가가 제한적이라 유지보수에 좋지 못하다. @Enumerated(EnumType.STRING) 타입을 지정하면, (여기서는 STRING 으로 지정한다.) 지정된 타입으로 Enum class의 데이터가 ..
- Total
- Today
- Yesterday
- Kotlin
- ChatGPT
- 스프링 스케줄링
- JPA
- QueryDSL
- 티스토리챌린지
- bucket4j
- junit5
- redisson 분산락
- Git
- FetchJoin
- checkout
- Cannot construct instance of
- spring boot 3
- jvm warm-up 전략
- array
- port
- Linux
- 추상클래스
- 오블완
- n+1
- addFilterBefore
- MultipleBagFetchException
- 배열
- 스프링오류
- Spring Security
- dto 클래스 생성자
- MongoDB
- Java
- 자바 어플리케이션 실행 과정
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |