SpringBoot升级到3.3.0出现Name for argument of type [java.lang.String] not specified, and parameter name
·
前几天把SpringBoot版本从3.1.3提到了3.3.0,出现了Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag..错误。在网上找了很多也解决不了,我看很多人说是因为从3.2之后就了好像,具体我也不知道。
我的解决办法:
SpringBoot3.3要匹配jdk17,但是我pom文件里面并没有修改,这是我之前的pom文件。

在求得官方回复后,我把1.7修改成了17就没问题了。当然你们也可以看看其他的解决办法,我试了很多办法,对我没啥用,才发现是pom文件没改。

<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> </properties>
更多推荐
所有评论(0)