cannot be opened because it does not exist,文件明明存在缺报文件不存在的解决办法(踩坑记录)

主要是因为idea默认只会编译.class文件而不会默认编译静态资源,需要在pom文件中指定

<build>    
    <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.doc
                
                
                    **/*.java</exclude>
                </excludes>
            </resource>
        </resources>
</build>

cannot be opened because it does not exist错误解决方法

你可能感兴趣的:(报错集合,java)