1.solrJ封装成JavaBean出错:
solrj response.getBeans(ArticleVO.class) 报错 .BindingException: Could not instantiate object of
这是因为文档中的有的域为数组类型(也就是配置文件schema.xml中域的配置multiValued)
即:multiValued=“true” ,表示多值
应该改为:multiValued=“false”。
11-06
1758
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-22
2301
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交