개인적으로 문제가 해결된 방안을 공유하고자 하는 것이며

반드시 해결되지 않을 수 있음을 알려드립니다.

 

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 버전 업데이트 후 에러 사라짐.

+ Recent posts