nested exception is java.io.FileNotFoundException

完整的错误信息: [main] ERROR o.s.boot.SpringApplication - Application run failed

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.heima.article.ArticleApplication]; nested exception is java.io.FileNotFoundException: class path resource [com/heima/apis/article/IArticleClient.class] cannot be opened because it does not exist.

找不到配置类错误,这个我是在初学微服务的时候遇到的,添加一个微服务运行时无法启动。

解决问题方法:

在maven中clean一下,将target清理掉重新运行

相关推荐
码上飞扬18 分钟前
Java大师成长计划之第22天:Spring Cloud微服务架构
java·运维·云计算
秋野酱36 分钟前
基于javaweb的SpringBoot自习室预约系统设计与实现(源码+文档+部署讲解)
java·spring boot·后端
面试官E先生1 小时前
【极兔快递Java社招】一面复盘|数据库+线程池+AQS+中间件面面俱到
java·面试
琢磨先生David1 小时前
构建优雅对象的艺术:Java 建造者模式的架构解析与工程实践
java·设计模式·建造者模式
一只努力学习的Cat.1 小时前
C++:二叉搜索树
开发语言·c++
<但凡.1 小时前
C++修炼:多态
开发语言·c++·算法
我爱写代码?1 小时前
Spark 集群配置、启动与监控指南
大数据·开发语言·jvm·spark·mapreduce
买了一束花1 小时前
数据预处理之数据平滑处理详解
开发语言·人工智能·算法·matlab
秭霏鱼1 小时前
Python+大模型 day01
开发语言·python
破晓的历程1 小时前
Qt之Qfile类
开发语言·qt