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清理掉重新运行

相关推荐
huipeng9261 天前
基于SpringCloud的博客系统
java·运维·后端·spring·spring cloud·微服务
kyle~1 天前
查找---插值查找(二分查找的改进版本)
开发语言·c++
高翔·权衡之境1 天前
主题7:缓存与队列——速度不匹配的通用解
开发语言·人工智能·物联网·缓存·信息与通信·信号处理
@SmartSi1 天前
AgentScope Java 入门:搭建第一个 ReAct 智能体
java·agentscope
小坏讲微服务1 天前
SpringBoot整合SpringAI配置多平台API密钥
java·人工智能·spring boot·后端·flask·ai编程·claude code
:1211 天前
java面试
java·开发语言·面试
ZC跨境爬虫1 天前
跟着 MDN 学 HTML day_62:(HTML调试与常见错误修复指南)
java·前端·javascript·ui·html·媒体
霸道流氓气质1 天前
Spring AI + Ollama 深度实战:从 RAG 问答到 Graph Agent 全流程指南
java·人工智能·spring
木井巳1 天前
【递归算法】不同路径Ⅲ
java·算法·leetcode·深度优先
lsx2024061 天前
Ruby 注释
开发语言