Error creating bean with name 'sqlSessionFactory' defined in class path resource [config/spring/applicationContext.xml]: Invocation of init me
程序员文章站
2022-05-31 19:13:52
我报的错: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [confi ......
我报的错:
org.springframework.beans.factory.beancreationexception: error creating bean with name 'sqlsessionfactory' defined in class path resource [config/spring/applicationcontext.xml]: invocation of init method failed; nested exception is org.springframework.core.nestedioexception: failed to parse mapping resource:
这个可能是项目刚开始时导入了mapper文件,但还是没有实体类与其对应而报的错,可以把mapper文件先去掉,这样不报错了
上一篇: Java的23种设计模式,详细讲解(三)
下一篇: 都是我们家的吗
推荐阅读
-
Spring Boot 报错:Error creating bean with name 'entityManagerFactory' defined in class path resource
-
Error creating bean with name 'sqlSessionFactory' defined in class path resource [config/spring/applicationContext.xml]: Invocation of init me
-
Spring Cloud中遇到的Error creating bean with name 'hystrixCommandAspect' defined in class path resource
-
error creating bean with name sqlSessionFactory defined in class path resource spring/spring-mvc
-
Spring Boot 报错:Error creating bean with name 'entityManagerFactory' defined in class path resource