问题:
WARNING: An illegal reflective access operation has occurred原因分析:
因为JDK9的新特性模块系统(module system)对jdk中的模块进行了反射检查,对于反射了jdk中的类的操作进行警告。解决方式:
- 降低JDK版本到1.8
- 开放访问权限
JDK9+可以使用启动参数中增加“—add-opens
在RUN>Edit Configurations>VM options 中增加参数,如:
—add-opens java.base/java.lang=ALL-UNNAMED —add-opens java.base/java.util=ALL-UNNAMED —add-opens java.desktop/java.awt.font=ALL-UNNAMED
—add-opens java.base/java.lang=ALL-UNNAMED —add-opens java.base/java.util=ALL-UNNAMED —add-opens java.base/java.lang.reflect=ALL-UNNAMED —add-opens java.base/java.text=ALL-UNNAMED —add-opens java.desktop/java.awt.font=ALL-UNNAMED
2、springboot集成jsp出现404问题解决
https://www.cnblogs.com/javawxid/p/12811864.html