今天运行spring项目时突然出现Could not resolve bean definition resource pattern [classpath:spring/springmvc*.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring/] cannot be resolved to URL because it does not exist
我在build中加入 <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resource</directory>#注意我的时resource 你们的可能是resources 对应上 <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources>
然后改这两个地方就可以运行了