消息Request processing failed: java.lang.IllegalArgumentException: Name for argument of type [int] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the ‘-parameters’ flag.
描述服务器遇到一个意外的情况,阻止它完成请求。
例外情况
jakarta.servlet.ServletException: Request processing failed: java.lang.IllegalArgumentException: Name for argument of type [int] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the ‘-parameters’ flag.
根本原因。
java.lang.IllegalArgumentException: Name for argument of type [int] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the ‘-parameters’ flag.
问题出现原因:新版本Spring调整了参数
找了一晚上问题所在,发现可能是新版本调整了参数,而spring会自动帮助设置,导致编译时选项“-参数”被禁用。也就是错误信息中的最后提示:Ensure that the compiler uses the ‘-parameters’ flag.