02、java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL be

java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL because it does not exist

在项目配置 ssl 文件,启动时报错没找到
02、java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL be_第1张图片

解决:

在pom文件中添加这个,说是如果不加此节点,resources文件中的spring配置文件将会找不到
02、java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL be_第2张图片

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

02、java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL be_第3张图片

你可能感兴趣的:(2023bug,java,spring,开发语言)