java反射获取参数名,idea/eclipse等开发工具的配置

java8 中的新特性可以直接通过反射获取方法的参数名,不做配置的话,后台获取参数时,会报:

com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of int out of START_OBJECT token

在idea(2019.3.3 版本)中需要配置:

在eclipse中需要在具体的项目属性中配置:

猜你喜欢

转载自blog.csdn.net/housonglin1213/article/details/104962518