java - 构建 Spring 应用程序失败
问题描述
我想弄清楚我的申请出了什么问题。
它在这里: 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
,但我应该在哪里应用它。
解决方案
推荐阅读
- css - 如何使用css突出显示小数位
- git - 我在 Azure Devops 的团队中错误地在其他人的分支中工作。对将我的更改推送到服务器感到困惑
- amazon-web-services - 无法在某些 EC2 ASG 上挂载某些 EFS 文件系统
- powershell - 如何将一个powershell脚本的输出变量值用于另一个powershell脚本
- javascript - 使用 Vuex 过滤另一个组件的单选按钮
- windows - 使用 VBS (Windows) 在当前 shell 中打开可执行文件
- swift - 你如何追踪 iPhone 屏幕的边框(包括 X、11 或 12 系列的刘海)?
- fastapi - Fastapi 和 Pydantic 构建 POST API:TypeError: Object of type is not JSON serializable
- angular - 查询参数未存储正确的值
- python - 类内矩阵乘积定义的问题