在启动springboot时报这个错误
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$2
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
测试虽然不影响程序运行,但对于轻度强迫症患者来说还是很让人心烦,查了些资料说jdk版本太高导致,要用jdk1.8,我用的是jdk11,
在idea右上角点击下图图标( 快捷键Ctrl+Alt+Shift+S 也可)
进入项目结构设置如图,选择jdk1.8
点击右下角OK就可以了,重启项目应该就没有报错了