最近学习用idea。尝试导入若衣的开源项目,发现启动不了。
网上看了好多答案乱七八糟的,具体报错为,求教。
。
git clone https://gitee.com/y_project/RuoYi.git
。
另外,我重新克隆并导入数据后,运行成功了,所以我不知道两次相同的操作为什么会有一次报错。
[restartedMain] ERROR o.s.b.SpringApplication - [reportFailure,858] - Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.ruoyi.RuoYiApplication];
nested exception is java.io.FileNotFoundException: class path resource [com/ruoyi/common/core/controller/BaseController.class] cannot be opened because it does not exist
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:181)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:315)
。。。此处省略更多
Caused by: java.io.FileNotFoundException: class path resource [com/ruoyi/common/core/controller/BaseController.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180)
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:51)
。。。此处省略更多
... 18 common frames omitted
com/ruoyi/common/core/controller/BaseController.java或者.class这个包是否不存在,提示没找到。
eclipse的项目导idea...好像项目结构不一样吧
报错的原因可能是文件缺失或者只读或者权限不够