이클립스
[eclipse] error running Gradle test : No matching tests found in any candidate test task.
스프링부트 TDD를 공부하던 와중 에러가 발생했다. 단순한 test 코드였는데 run을 해도 아무런 변화가 생기지 않았다. 자세히 살펴보니 terminated가 떠있는걸 발견할 수 있었고, 사람들이 말하는 빨간줄과 초록줄도 보이지 않았다.. 그래서 gradle test를 해보니 No matching tests found in any candidate test task. 에러 해결 1. junit5 의존성 추가하기 스프링부트 2.2x 이상부터는 junit4가 아닌 junit5를 사용해야 한다고 한다. 마구잡이식으로 의존성을 추가했던터라 junit4가 추가되어 있었다! 다시 junit5로 추가해주었다. 그래도 run이 되지 않았다... 2. org.junit.jupiter 패키지 사용하기 이전에 junit4..
![[eclipse] The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 에러 해결](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fbodq6j%2FbtrwonE0HBh%2FAAAAAAAAAAAAAAAAAAAAAJUgPCxvpEBMtPp29AP8MSKi8TsQt2iONWH2QWSHxwMe%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DPm6R3OJn%252FpUlkxSMyoZa1wMCZEI%253D)
[eclipse] The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 에러 해결
eclipse 에서 getter / setter 를 자동 생성해주는 기능을 사용하려 할 때 해당 에러를 만날 때가 있다. The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 이는 올바른 포커스에서 기능을 사용하지 않았기 때문이다. 필자처럼. .class 내부가 아닌 외부로 선택되어져 있는 경우 getter와 setter의 자리가 올바르지 않은 경우이다. 제대로 포커스를 맞추고 실행하도록 하자 ^^
![[eclipse] 프로젝트 유형 변경하기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcpxOFl%2FbtrrqZ80nAI%2FAAAAAAAAAAAAAAAAAAAAANUJPwmYautylHJKjiTsWBxM_6ee1HN2sffoaA1pRSLR%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DQ1Ajf6mhtU0SRTgNTRQ40Od6ycQ%253D)
[eclipse] 프로젝트 유형 변경하기
프로젝트를 진행하며 기존에 Static Project 유형으로 생성했어서 JSP 파일을 생성하지 못했다. 따라서 프로젝트 유형을 바꿔줘야 했는데 방법은 간단하다. * Gradle이나 Maven, Spring 프로젝트로도 유형 변경이 가능하다. 단, 관련 플러그인이 설치되어 있어야 한다. - 해결 방법 프로젝트명 마우스 우클릭 - Configure - 원하는 유형 선택
![[Github] git-receive-pack not permitted 에러 해결](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fb5hgzW%2FbtrrwfiUsOg%2FAAAAAAAAAAAAAAAAAAAAAC-_iJmfKinGTjcvzM9RWelNM1uIoTvy1sbnW6KZh753%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3Dlvjl7HRjxpYf%252FJhZUm7rc%252FolR88%253D)
[Github] git-receive-pack not permitted 에러 해결
참고 - https://curryyou.tistory.com/344 저번까지만 해도 잘되던 이클립스에서의 깃허브 푸시가 제목과 같은 에러가 나며 안되기 시작했다. 그런데 사실 이건 깃허브에서 경고한 사항이었다.. 깃허브에 등록된 이메일함을 확인해보면 평소 영어 울렁증이 있던 나는 무조건 기피해버리며 읽지 않았던 것.. 다음부터는 주의 깊게 잘 읽도록 하자. 대충 요약을 하자면 GitHub에서 ID/PW 기반의 Basic authentication 인증을 금지하고, ID/Personal Access Token 방식의 ToKen authenticaion 인증을 요구하고 있다는 것이다. 아마 8월 13일을 기점으로 변경된 듯 하다. 이제 원인을 알았으니 해결해보자. 해결법은 간단하다. 깃허브에서 요구하는 Pe..
![[eclipse] Editor does not contain a main type 에러 해결](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FKIw4G%2FbtrrpU792R2%2FAAAAAAAAAAAAAAAAAAAAAGv4sn58inxevlUdRc8GaXizrsnwOhuIjU5jwIilFaN6%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DzcIF1iTZ5ZaG3%252FHy7SfF4zRaH5A%253D)
[eclipse] Editor does not contain a main type 에러 해결
원인 - 자바 클래스 파일이 src 폴더에 있지 않다. - 클래스 파일을 감싸는 패키지가 아예 없다(default 패키지조차 없음) - 프로젝트를 다른 데에서 불러왔다 - main 함수에 오타가 있다. 해결 - src 폴더를 만들어 주거나 패키지를 만들어 넣어 준다. - 오타를 수정한다. public static void main(String[] args)