出错 Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mvc.xml]

Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [spring-mvc.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:mapper/*.xml]: class path resource [mapper/] cannot be resolved to URL because it does not exist

解决办法:导入的jar有问题,请重新去导入正确的jar包

你可能感兴趣的:(个人的学习练习)