본문 바로가기

전체 글120

JPA 에러모음 1. Exception in thread "main" java.lang.IllegalArgumentException: Unknown entity: "엔티티 명" #1. 원인 Gradle 빌드에서 엔티티 클래스를 자동으로 인식을 못하는 경우 발생하는 오류이다 #2. 해결 persistence.xml에 다음과 같이 class를 추가해주면 해결이 된다. 프로젝트명.엔티티클래스 명 예시 프로젝트명.엔티티클래스 명 프로젝트명.엔티티클래스 명 옵션들 .. 2021. 8. 17.
Spring 오류 정리 4. Could not write standard input to Gradle Test Executor 5. , Java.io.IOException : 파이프가 닫히는 중입니다. #1. 원인 (Intelli J, Gradle) (로컬환경) 컴파일러가 Gradle로 되어있기 때문에 테스트 케이스 작성에 실패한 듯함 #2. 해결 Ctrl + Alt + s (환경설정) -> Build, Exception, Deployment -> Gradle -> Gradle Project 탭 Build and run using 과 Run tests using을 모두 IntelliJ IDEA 로 변경 2021. 8. 14.
Spring 오류 정리 3. javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: "엔티티 디렉토리" colu.. #1 원인 해당 엔티티 클래스 내부에서 지정한 칼럼 어노테이션에 중복이 있기 때문에, 빈 생성에 실패하면 발생하는 오류 #1 해결 해당 엔티티 클래스의 @Column 어노테이션의 name 프로퍼티의 중복이 있나 확인하여야 한다. 예제는 다음과 같다. import lombok.*; import javax.persistence.*; @Entity public class Member { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name = "memberId", nullable = false) private String memberId; // 에러 발생부분 Column의 name 프로퍼티가 memberId로 겹.. 2021. 8. 13.
MySQL 오류정리 :: 1. Error Code: 1034 Index for table 'global_priv' is corrupt; try to repair itError Code: 1034 Index for table 'global_priv' is corrupt; try to repair it - 관련 링크 : https://www.digitalocean.com/community/tutorials/how-to-fix-corrupted-tables-in-mysql - 관련 링크: https://stackoverflow.com/questions/57128891/how-repair-corrupt-xampp-mysql-user-table #1. 원인 때때로 MySQL의 테이블들은 손상될 수 있는데, 해당 오류의 내용은 해당 테이블의 데이터를 읽을 수 없게 되었기 때문이다. 그 원인으로서는 하기 이유들이 있을 수 있다. 관련링크 원문 Some common causes of corrupted tables are: The MySQL server stops in middle of a write. An ext.. 2021. 8. 13.
공부내용 정리 Java :: JDK, JRE, JVM의 차이 - 참고링크 : https://wikidocs.net/257 - 참고링크 : https://m.blog.naver.com/duqrlwjddns1/221770110714 # JVM (Java Virtual Machine) + 가비지 컬렉션(Garbage Collection) - JVM은 자방 가상머신이다. 자바로 작성된 코드를 실행할 수 있도록 도와주는 가상의 머신이라고 생각하면 된다. 자바로 코딩된 파일은 .class라는 바이너리 파일로 컴파일 되어 실행되는데 이것을 도와주는 일종의 툴이다. - 자바는 가상환경에서 실행되는 것이기 때문에 윈도우 뿐만 아니라 다른 운영체제 리눅스, 맥, 심지어 기계에서도 실행이 가능하다. - 가비지 컬렉터(Garbage Collector), JVM내에서 메모리를 관리하는 .. 2021. 8. 8.
Spring 오류 정리 2.org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter 'NAME' for method parameter type DATATYPE is not present ## 에러메세지 org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter 'NAME' for method parameter type DATATYPE is not present ## 원인 컨트롤러의 코드상에서 파라미터를 요구하였는데, 요청에 있어서 해당 필수파라미터가 결여되어있기 때문에 발생하는 에러. ## 해결방법 // 에러코드 예제 Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter 'name' for method parameter type Strin.. 2021. 8. 8.