问答详情
源自:5-1 SpringBoot 资源文件属性配置

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

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

提问者:慕粉4138489 2018-05-30 14:48

个回答

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

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