maven常见的异常
1.Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
原因:配置文件中的id方法名和dao接口中的方法名不一致
2.Could not resolve type alias ‘users’. Cause: java.lang.ClassNotFoundException: Cannot find class: users
原因:类路径或者别名写错了
3.org.springframework.jdbc.BadSqlGrammarException:
Error querying database. Cause: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
解决方法:看看你的语句后面是不是有冒号!Mybatis里是不允许写冒号的
4.3.org apache. ibatis. binding. BindingException: Type interface org . aptech. hdax . dao. BlonDao is not known to the MapperRegistry.
原因:mybatis配置中或许没有导入配置文件
解决方案:去看看mybatis配置文件中mapper标签有没有导入映射文件