Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json Jackson@Types定义上出现意外令牌错误_Json_Jackson_Json Deserialization_Json Serialization_Intellij 15 - Fatal编程技术网

Json Jackson@Types定义上出现意外令牌错误

Json Jackson@Types定义上出现意外令牌错误,json,jackson,json-deserialization,json-serialization,intellij-15,Json,Jackson,Json Deserialization,Json Serialization,Intellij 15,我的groovy类中有一个Jackson注释,如中所示。我不知道IntelliJ为什么将其报告为预期的标识符 正在运行./gradlew build时,在同一位置出现此错误 Setting.groovy: 22: unexpected token: , @ line 22, column 52. ySetting.class, name='binary'), ^ 1 error Task compileGroovy F

我的groovy类中有一个Jackson注释,如中所示。我不知道IntelliJ为什么将其报告为预期的标识符

正在运行./gradlew build时,在同一位置出现此错误

Setting.groovy: 22: unexpected token: , @ line 22, column 52.
   ySetting.class, name='binary'),
                                 ^

1 error


Task compileGroovy FAILED
我真的不知道为什么它会在那部分出错。甚至谷歌搜索示例代码也给出了这种结构

谢谢