I\'m setting up mybatis using annotations, and getting this helpful exception
org.apache.ibatis.binding.BindingException: Type interface org.foo.Bar is
In your mapper.xml file mapper's namespace should be the path to the mapper interface.
for example:
select * from bus_line where id = #{id}
your mapper interface should be in com.mapper package and the name of it is LineMapper.