在 Springboot 中采用 properties 作为配置文件的时候,写测试类会报“[application.yml] cannot be opened because it does not exist ” 错误。改为 yml 就可以了。
Springboot 测试类 [application.yml] cannot be opened because it does not exist
最新推荐文章于 2024-05-20 11:33:52 发布
在 Springboot 中采用 properties 作为配置文件的时候,写测试类会报“[application.yml] cannot be opened because it does not exist ” 错误。改为 yml 就可以了。