Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'courseBaseMapper' defined in file [D:\Users\maxin\IdeaProjects\xuecheng-plus-project148\xuecheng-plus-project148\xuecheng-plus-content\xuecheng-plus-content-service\target\classes\com\xuecheng\content\mapper\CourseBaseMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'com/xuecheng/content/mapper/CourseBaseMapper.xml'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.xuecheng.content.model.dto.TeachplanDto'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.xuecheng.content.model.dto.TeachplanDto这是什么错误
时间: 2023-06-11 08:05:29 浏览: 129
这是一个关于Spring框架下bean创建时出现异常的错误,具体原因是在初始化CourseBaseMapper时,解析Mapper XML时出现了错误。错误的具体原因是在解析CourseBaseMapper.xml文件时,解析器无法找到类'com.xuecheng.content.model.dto.TeachplanDto',导致初始化失败。
阅读全文