SSM框架搭建中碰見的報錯(二)

報錯:Error creating bean with name 'sqlSessionFactory' defined in class path resource

報錯Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-servlet.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:sqlMapper/**/*.xml]: class path resource [sqlMapper/] cannot be resolved to URL because it does not exist
解決方法:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章