<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
stackoverflow还有个解法是升级maven-compiler-plugin插件,然后在configuration中添加parameters=true
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<encoding>UTF-8</encoding>
<parameters>true</parameters>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
RequestParam.value() was empty on parameter 0 问题解决
原文:https://blog.51cto.com/thinklili/2566864