java.io.FileNotFoundException: class path resource [classpath*:/mapper/**.xml ] cannot be opened because it does not exist
问题解决了
sqlSessionFactoryBean.setMapperLocations(resolver.getResources(packageSearchPath));
这句代码
getResources
方法调错了,少了个s?
你看一下你的application.properties文件中mybatis的配置 com.imooc.demo.entity前面那个名称和SessionFactoryConfiguration里面的名字是不是一致的typeAliasPackage