异常解决-java.io.FileNotFoundException

2020-05-09 15:21:17 浏览数 (1)

异常解决-java.io.FileNotFoundException

代码语言:javascript复制
DEBUG [main] - Could not retrieve resources for pattern 'classpath: mapper/*Mapper.xml'
java.io.FileNotFoundException: class path resource [ mapper/] cannot be resolved to URL because it does not exist
    at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:493)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:294)
    at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1297)
    at org.springframework.core.io.support.ResourceArrayPropertyEditor.setValue(ResourceArrayPropertyEditor.java:135)
    at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:407)
    at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:200)
    at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:588)
    at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:615)
    at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216)

解决办法

0 人点赞