logimp报错日志直接看报错的最后一句。
另外bug:namespace=“这里面应该用…来分隔,不应该用/”,所以这里不应该复制,键盘自己敲
Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘com/heyu/dao/StudentDao.xml’. Cause: org.apache.ibatis.builder.BuilderException: Wrong namespace. Expected ‘com.heyu.dao.StudentDao’ but found ‘com/heyu/dao/StudentDao.java’.
这篇文章分析了在使用Spring Boot和MyBatis时遇到的配置错误,重点在于错误日志中提到的SQLMapperConfiguration解析问题,特别是关于命名空间的错误。作者指出了正确的命名规范并提供了修复建议。

7254

被折叠的 条评论
为什么被折叠?



