5. 그 외 공부/5.1 ERROR
-
[SpringBoot] Application startup failedorg.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class5. 그 외 공부/5.1 ERROR 2024. 4. 2. 12:02
회사에서 프로젝트 빌드를 하다가 해당 에러가 나와서 1시간동안 헤맴.. 에러 내용 *Application.main(*Application.java:23) [classes/:na] Caused by: java.io.FileNotFoundException: class path resource [properties/*.properties] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172) ~[spring-core-4.3.6.RELEASE.jar:4.3.6.RELEASE] at org.springframework.core...
-
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '*' defined in file [**]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.Unsatisfied..5. 그 외 공부/5.1 ERROR 2023. 10. 24. 17:49
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memberController' defined in file [C:\Users\USER\Downloads\demo\out\production\classes\com\example\demo\controller\MemberController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error cre..
-
com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column '*' at row 15. 그 외 공부/5.1 ERROR 2023. 10. 16. 09:38
혼자 토이프로젝트를 하다가 해당 에러를 접하고 말았다.. 이유는 즉슨.. 테이블 생성했을때 해당 칼럼에 대하여 varchar(50)으로 했었던점.. 문자열 길이가 50자가 넘어서 생기는 에러라고 한다. 그래서 alter table (테이블명) modify (칼럼명) text로 수정해주었다. 끝
-
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement '*'. It's likely that neither a Result Type nor a Result Map was specifi..5. 그 외 공부/5.1 ERROR 2023. 10. 13. 10:05
Test 코드를 작성하던 중 해당 에러코드가 나왔다 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement '*'. It's likely that neither a Result Type nor a Result Map was specified. (에러코드 블라블라.....) Caused by: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were..
-
[Spring] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxxx' defined in xxxx: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: TargetSource cannot determin..5. 그 외 공부/5.1 ERROR 2023. 4. 16. 22:27
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxxxx' defined in xxxxxx : Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: TargetSource cannot determine target class: Either an interface or a target is required for proxy creation. at org.springframework.beans.factory.support.AbstractAutowireCapableBe..
-
[Java]Exception in thread "main" java.lang.ClassCastException: class xxx cannot be cast to class java.lang.Comparable (xxxx is in unnamed module of loader 'app'; java.lang.Comparable is in module java.base of loader 'bootstrap')5. 그 외 공부/5.1 ERROR 2022. 10. 24. 23:13
package com.example.myPrac.practice; import lombok.AllArgsConstructor; import lombok.Data; @AllArgsConstructor @Data public class Person { private String name; private int age; private String phoneNumber; } package com.example.myPrac.practice; import java.util.Arrays; import java.util.List; public class Test { public static void main(String[] args) { Person p1 = new Person("person1",11,"010-1111..
-
[Java]java.util.NoSuchElementException: No value present5. 그 외 공부/5.1 ERROR 2022. 10. 2. 11:48
회원가입 창 관련 컨트롤러를 작성하던 중, 하기와 같은 에러가 쏟아졌다. java.util.NoSuchElementException: No value present at java.base/java.util.Optional.get(Optional.java:148) ~[na:na] at jpabook.jpashop.domain.service.MemberService.findLoginId(MemberService.java:31) ~[classes/:na] at jpabook.jpashop.domain.service.MemberService$$FastClassBySpringCGLIB$$ce30cb5f.invoke() ~[classes/:na] at org.springframework.cglib.proxy.Met..
-
[SpringBoot JPA]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testDataInit': Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.Transi..5. 그 외 공부/5.1 ERROR 2022. 9. 28. 20:16
ERROR가 아니라 그냥 오늘의 삽질로 바꿔야할거같다.. SpringBoot + JPA에서 배운내용을 토대로 게시판을 만들어보았다. 샘플 데이터 초기화를 하던 중 에러가 떠서 n시간 삽질했다. package jpabook.jpashop.domain; import jpabook.jpashop.domain.model.Address; import jpabook.jpashop.domain.model.Delivery; import jpabook.jpashop.domain.model.Member; import jpabook.jpashop.domain.model.item.Book; import jpabook.jpashop.domain.service.ItemService; import jpabook.jpashop.do..