2020. 6. 3. 15:46ㆍIT개발/iBatis & MyBatis
문제 :
Initialized JPA EntityManagerFactory for persistence unit 'default'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/C:/dev/eclipse202003/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/xxxxxxxxx/WEB-INF/lib/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로 업그레이드 하니 바로 되네;;;
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.4</version>
</dependency>
===============================================
참고자료 : https://www.logicbig.com/tutorials/core-java-tutorial/modules/illegal-access-operations.html
Java 9 Modules - The Unnamed Module and Accessing JDK Internal Code via Reflection[Updated: Mar 16, 2018, Created: Mar 15, 2018] | |
In the last example we saw that a Java 9 module cannot use reflection to access non-public field/method/constructor unless the target module 'opens' itself for reflection. In this tutorial we will learn how the code that was written in Java 8 or before can still continue to work without explicitly opening for reflection. The old code which runs in Java 9 is automatically promoted to unnamed modules. Java 9 introduced a new JVM option --illegal-access which can be assigned one of the following values:
Note that this option may not be available in future JDK versions at all. From Java tool doc:
|