关于IDEA整合SpringMVC和myBatis的异常问题
请教各位大佬一个问题..关于IDEA整合SpringMVC和Mybatis的时候..报Mapper文件的路径找不到的问题..但是我用Junit4测试的时候没有问题..用tomcat启动的时候报sqlSessionFactoryBean的MapperLoactions属性有问题....
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [application.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 [com/ljljob/crm/mapper/*Mapper.xml]: ServletContext resource [/com/ljljob/crm/mapper/] cannot be resolved to URL because it does not exist