※ 개인적으로 문제가 해결된 방안을 공유하고자 하는 것이며
반드시 해결되지 않을 수 있음을 알려드립니다.
DBConfiguration.class에서
매퍼 xml 등록을 위해
factoryBean.setMapperLocations(applicationContext.getResources("classpath:mappers/**/*Mapper.xml"));
추가시 하기 에러 발생
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [경로/클래스명.class]
- Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource:
등등의 오류 메세지 길게 나옴
mapper.xml에 포함된 parametrType, resultType 등의 클래스명 앞에 경로 추가 후 하기 메세지 발생
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/C:/Users/baang/.m2/repository/org/mybatis/mybatis/3.4.1/mybatis-3.4.1.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
pom.xml에서 mybatis 버전 업데이트 후 에러 사라짐.
'스프링 > 오류 관련' 카테고리의 다른 글
| [Spring Boot] paging을 위한 작성중 오류(임시해결) (0) | 2021.08.11 |
|---|---|
| [Spring Boot] DB에서 쿼리 결과 반환 시 카멜/언더스코어 관련 컬럼 오류 (0) | 2021.07.16 |
| [SpringBoot] html에서 XMLHttpRequest 요청 시 403에러 (0) | 2021.06.05 |
| [SpringBoot] html에서 js 경로 오류 (0) | 2021.06.05 |
| [Spring Boot] Failed to determine a suitable driver class 에러 (0) | 2021.05.13 |