11:20:02.826 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mapperLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:mappers/*.xml]: class path resource [mappers/] cannot be resolved to URL because it does not exist

eclipse转到idea已经2个星期了,里面很多东西不熟悉,还是要一步一步来,今天做一个单体web项目,启动报错

查到原因 :resource  资源文件  resources 忘记加s了,自己创建的,不仔细呀

 

posted on 2021-05-06 11:32  万智  阅读(248)  评论(0)    收藏  举报