跳至主要內容

parameters 问题

Jin...小于 1 分钟

parameters 问题

报错信息

java.lang.IllegalArgumentException: Name for argument of type [boolean] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.

https://github.com/spring-projects/spring-boot/issues/38541


解决

https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retentionopen in new window

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <parameters>true</parameters>
    </configuration>
</plugin>
贡献者: Jin
你认为这篇文章怎么样?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
评论
  • 按正序
  • 按倒序
  • 按热度