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 文件,启动时报错没找到
![www.zeeklog.com - 02、java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL be](https://qiniu.meowparty.cn/coder.2023/2025-02-09/Lesson-2d8e487929771.png)
解决:
在pom文件中添加这个,说是如果不加此节点,resources文件中的spring配置文件将会找不到
![www.zeeklog.com - 02、java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL be](https://qiniu.meowparty.cn/coder.2023/2025-02-09/Lesson-99c71d23aba78.png)
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
![www.zeeklog.com - 02、java.io.FileNotFoundException: class path resource [spring.keystore] cannot be resolved to URL be](https://qiniu.meowparty.cn/coder.2023/2025-02-09/Lesson-ec10710418f8d.png)