我想弄清楚我的应用程序出了什么问题。
它在这里: https://github.com/Daniel-Avo/RaspberryPi-Locer-Controller/tree/development
我在 Raspberry 3 B+ 上运行它,但出现了一些错误:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$2 (jar:file:/home/pi/testing/RaspberryPi-Locer-Controller/target/RaspberryPi-1.0-SNAPSHOT.jar!/lib/spring-core-4.1.6.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.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
这个 ReflectUtils 是我知道的主要问题,我可以使用它来避免它:
--add-opens java.base/java.lang=ALL-UNNAMED
,但我应该在哪里应用它。