问题:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cofco.graincircle.mbmp.mapper.UserMapper.insert at org.apache.ibatis.binding.MapperMethod
SqlCommand.(MapperMethod.java:225) [mybatis−3.4.5.jar:3.4.5]atorg.apache.ibatis.binding.MapperMethod.(MapperMethod.java:48) [mybatis−3.4.5.jar:3.4.5]atorg.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65) [mybatis−3.4.5.jar:3.4.5]atorg.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58) [mybatis−3.4.5.jar:3.4.5]atcom.sun.proxy.
S
q
l
C
o
m
m
a
n
d
.
(
M
a
p
p
e
r
M
e
t
h
o
d
.
j
a
v
a
:
225
)
[
m
y
b
a
t
i
s
−
3.4.5.
j
a
r
:
3.4.5
]
a
t
o
r
g
.
a
p
a
c
h
e
.
i
b
a
t
i
s
.
b
i
n
d
i
n
g
.
M
a
p
p
e
r
M
e
t
h
o
d
.
(
M
a
p
p
e
r
M
e
t
h
o
d
.
j
a
v
a
:
48
)
[
m
y
b
a
t
i
s
−
3.4.5.
j
a
r
:
3.4.5
]
a
t
o
r
g
.
a
p
a
c
h
e
.
i
b
a
t
i
s
.
b
i
n
d
i
n
g
.
M
a
p
p
e
r
P
r
o
x
y
.
c
a
c
h
e
d
M
a
p
p
e
r
M
e
t
h
o
d
(
M
a
p
p
e
r
P
r
o
x
y
.
j
a
v
a
:
65
)
[
m
y
b
a
t
i
s
−
3.4.5.
j
a
r
:
3.4.5
]
a
t
o
r
g
.
a
p
a
c
h
e
.
i
b
a
t
i
s
.
b
i
n
d
i
n
g
.
M
a
p
p
e
r
P
r
o
x
y
.
i
n
v
o
k
e
(
M
a
p
p
e
r
P
r
o
x
y
.
j
a
v
a
:
58
)
[
m
y
b
a
t
i
s
−
3.4.5.
j
a
r
:
3.4.5
]
a
t
c
o
m
.
s
u
n
.
p
r
o
x
y
.
Proxy65.insert(Unknown Source) ~[na:na]
解决方法:
mapper.xml的地址写有错误,应该写对路径,让服务能找到,如下:
mybatis.mapper-locations=classpath*:/mybatis/sqlmap/*Mapper.xml
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
最新推荐文章于 2022-08-23 23:03:51 发布