Servlet.service() for servlet [dispatcherServlet] in context with path [/Textprj_war_exploded] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.hjy.dao.UserinfoDao.findByUsername] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.hjy.dao.UserinfoDao.findByUsername
再次出现到不到dao层下的方法问题,经过测试,这种错误主要是因为sql语句写的不对,导致方法未注 入,特别是用mybatis的注解来写动态sql的时候,非常容易发生
做一下标记。