zoukankan      html  css  js  c++  java
  • spring 编译时抱错纪录class path resource [spring/] cannot be resolved to URL because it does not exist

    class path resource [spring/] cannot be resolved to URL because it does not exist;

    在 pom.xml 里添加如下代码

    1.  <build>
    2.     <finalName>ForestBlog</finalName>
    3.     <resources>
    4.       <resource>
    5.         <directory>src/main/java</directory>
    6.         <includes>
    7.           <include>**/*.properties</include>
    8.           <include>**/*.xml</include>
    9.         </includes>
    10.         <filtering>true</filtering>
    11.       </resource>
    12.     </resources
    13. </build>

    如果还是不行,无法生成 mybatis和spring,以及那两个properties文件的情况,试试 clean (删除target),然后在启动 Tomcat。

  • 相关阅读:
    HDU 5521 Meeting
    HDU 5170 GTY's math problem
    HDU 5531 Rebuild
    HDU 5534 Partial Tree
    HDU 4101 Ali and Baba
    HDU 5522 Numbers
    HDU 5523 Game
    ZUFE OJ 2301 GW I (3)
    POJ 2398 Toy Storage
    POJ 2318 TOYS
  • 原文地址:https://www.cnblogs.com/Amos-Turing/p/9302841.html
Copyright © 2011-2022 走看看