【版本】 你们好,版本如下,springframework:6.0.11,springboot:3.0.9
【问题】 项目启动,并且请求接口时,将会报出警告:Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: com.zy.base.controller.NwlBaseController
【示例】
1、接口和版本
2、当项目启动之后,请求接口时,会进入到“LocalVariableTableParameterNameDiscoverer”类的“inspectClass”方法,从而抛出警告
Comment From: bclozel
See #29531 as for why you're getting this log warning and see #29559 as this strategy has been removed from the next minor version.
Please compile your Java sources with the common Java 8+ -parameters
flag for parameter name retention (instead of relying on the -debug
compiler flag) in order to be compatible with StandardReflectionParameterNameDiscoverer
.
Comment From: dengchufeng
See #29531 as for why you're getting this log warning and see #29559 as this strategy has been removed from the next minor version. Please compile your Java sources with the common Java 8+
-parameters
flag for parameter name retention (instead of relying on the-debug
compiler flag) in order to be compatible withStandardReflectionParameterNameDiscoverer
.
原来是这样,Thank you!