본문 바로가기

기록/Web

[Mybatis] WARNING: An illegal reflective access operation has occurred

SMALL

원인

테스트 중 다음과 같은 경고가 발생했다.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/C:/Users/USER/.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

 


해결

mybatis 버전 문제로, 3.4.1 버전 -> 3.5.2 버전으로 업그레이드 한 후 maven update를 했더니 해결되었다. 

SMALL