Maven项目启动失败:class path resource [spring/] cannot be resolved to URL because it does not exist

目录

Maven项目启动失败:class path resource [spring/] cannot be resolved to URL because it does not exist

解决方法1

在pom.xml中加入

<build>
<resources>
<resource>
  <directory>src/main/resources</directory>
  <includes>
    <include>**/*.properties</include>
    <include>**/*.xml</include>
  </includes>
  <filtering>false</filtering>
</resource>
</resources>
</build>

解决方法2

在web.xml中的classpath后面加个 *****

 <param-value>classpath*:spring/springmvc.xml</param-value>
上一篇:CSAW CTF 2016 PWN quals-warmup


下一篇:用PowerShell的命令行检查文件的校验MD5 SHA1 SHA256