• 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。

  • 相关阅读:
    ThreadPoolExecutor使用介绍
    apache和tomcat区别(转)
    ThreadFactory的理解
    Tomcat报45秒无法启动错误修改方法
    快速排序
    冒泡排序
    矩阵快速幂
    CF#524-C
    CF#524-B
    hdu3308—LCIS
  • 原文地址:https://www.cnblogs.com/Amos-Turing/p/9302841.html
Copyright © 2020-2023  润新知