org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.imooc.ImoocApplication]; nested exception is java.io.FileNotFoundException: class path resource [calsspath:resource.properties] cannot be opened becau

来源:5-1 SpringBoot 资源文件属性配置

慕粉4138489

2018-05-30 14:48

https://img4.mukewang.com/5b0e48760001679c13660641.jpg

https://img3.mukewang.com/5b0e4877000110c110940580.jpg

https://img3.mukewang.com/5b0e487800012d9a13630455.jpg

https://img3.mukewang.com/5b0e487900012dd305650455.jpg

启动时候报错

找不到properties配置文件,无法被Controller所引用https://img1.mukewang.com/5b0e492f0001f8dc11150546.jpg

写回答 关注

1回答

  • 爱_java_学习
    2018-05-30 21:47:18

    你的路径写的有问题,是classpath

    慕粉4138...

    谢谢你

    2018-06-08 13:45:31

    共 1 条回复 >

SpringBoot开发常用技术整合

SpringBoot 极简开发的框架整合利器

102157 学习 · 507 问题

查看课程

相似问题