Caused by: java.lang.RuntimeException: JavaBeansDataExchange could not instantiate result class. Cause: java.lang.InstantiationException: java.util.Map
原因:
ibatis查询出错。ibatis中Map作为resultClass时,必须指定具体的实现类,比如java.util.HashMap,否则会报错
解决方法:
把
select * from Special_Item
where AnswerId =
A
n
s
w
e
r
I
d
AnswerId
AnswerId and SepcialId =
S
e
p
c
i
a
l
I
d
SepcialId
SepcialId
改成
select * from Special_Item
where AnswerId =
A
n
s
w
e
r
I
d
AnswerId
AnswerId and SepcialId =
S
e
p
c
i
a
l
I
d
SepcialId
SepcialId