解决springboot3.x 新版本调整了参数,导致编译时错误:Ensure that the compiler uses the '-parameters' flag

解决springboot3.x 新版本调整了参数,导致编译时选项“-parameters”被禁用。也就是错误信息中的最后提示:Ensure that the compiler uses the '-parameters' flag.

Signed-off-by: 常康 <1745822665@qq.com>
pull/999/head
常康 2025-03-31 15:25:58 +00:00 committed by Gitee
parent e39629472c
commit 82ac736b8c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>${project.artifactId}</warName>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>