通過反射獲取方法形參和傳入的參數(shù)名字映射?在pom文件增加如下插件
<plugin>
? ? ? ? <groupId>org.apache.maven.plugins</groupId>
? ? ? ? <artifactId>maven-compiler-plugin</artifactId>
? ? ? ? <version>3.1</version>
? ? ? ? <configuration>
? ? ? ? ? <source>11</source>
? ? ? ? ? <target>11</target>
? ? ? ? ? <encoding>utf-8</encoding>
? ? ? ? ? <!--告訴編譯器形參的真實(shí)名稱-->
? ? ? ? ? <compilerArgs>
? ? ? ? ? ? <arg>-parameters</arg>
? ? ? ? ? </compilerArgs>
? ? ? ? </configuration>
? ? ? </plugin>