idea入门
刚开始用IDEA会有很多不习惯
项目报错:
1 Project build error: Non-resolvable parent POM for com.ks:my-springboot1:0.0.1-SNAPSHOT: Failure to transfer 2 org.springframework.boot:spring-boot-starter-parent:pom:2.0.2.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local 3 repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not 4 transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): 5 repo.maven.apache.org and 'parent.relativePath' points at no local POM
把所在jar删了,重新下载后,项目仍然显示这个错误。
解决方法:项目有改动之后,IDEA右下角会自动出现Import 的弹框:
点击Import,重新加载编译,这样刚才改动的内容才能生效。
或者点击“Enable Auto-Import”使每次引用的jar包自动导入
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 葡萄城 AI 搜索升级:DeepSeek 加持,客户体验更智能
· 什么是nginx的强缓存和协商缓存
· 一文读懂知识蒸馏