使用SSM框架,添加一个新的Mapper.xml文件后,运行项目报错:
org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Blog'. Cause: java.lang.ClassNotFoundException: Cannot find class: Blog
开始我的Mapper是这样设置的:
<mapper namespace="com.online.dao.BlogDao">
<!--