The IUserDao.xml removed using the method of dao @Select annotation interface, and specify the SQL statement, also need mapper disposed in mybatis-config.xml, the class attribute to specify the fully qualified class name of the dao interface.
IUserDao.java:
@Select("select * from user")
List<User> findAll();
mybatis-config.xml:
<mappers>
<mapper class="net.togogo.dao.IUserDao"></mapper>
</mappers>