程序包org.springframework.boot不存在的問題解決
更新時間:2024年09月06日 16:01:01 作者:唯?
本文主要介紹了程序包org.springframework.boot不存在的問題解決,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
程序包org.springframework.boot不存在
1、檢查依賴
首先檢查pom文件判斷依賴是否存在
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.4.5</version>
</dependency>2、緩存問題
有時候構建工具會緩存依賴的 Jar 包,如果緩存的 Jar 包已經損壞或過期,就可能導致無法正確加載。嘗試清理構建工具的緩存,然后重新構建項目,以便重新下載依賴。
3、解決方式-運行時勾選

原因分析
1、項目的.iml文件異常刪除重即可
刪除前的.iml文件
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="CheckStyle-IDEA-Module" serialisationVersion="2">
<option name="activeLocationsIds" />
</component>
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$/nacos_config_order">
<sourceFolder url="file://$MODULE_DIR$/nacos_config_order/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/nacos_config_order/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/nacos_config_order/target/generated-sources" isTestSource="false" />
</content>
</component>
</module>重新生成后的
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="CheckStyle-IDEA-Module" serialisationVersion="2">
<option name="activeLocationsIds" />
</component>
</module>到此這篇關于程序包org.springframework.boot不存在的問題解決的文章就介紹到這了,更多相關程序包org.springframework.boot不存在內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
您可能感興趣的文章:
- 如何解決Could not transfer artifact org.springframework.boot問題
- SpringBoot引入Redis報org.springframework.data.redis.core.RedisTemplate類找不到錯誤問題
- java:無法訪問org.springframework.boot.SpringApplication問題
- 程序包org.springframework不存在的解決辦法
- org.springframework.web.client.ResourceAccessException資源訪問錯誤的解決方法
- Java報錯:Error:java:?程序包org.springframework.boot不存在解決辦法
- SpringFramework中的數據校驗方式
相關文章
為什么說要慎用SpringBoot @ComponentScan
本文主要介紹了為什么說要慎用SpringBoot @ComponentScan,文中通過示例代碼介紹的非常詳細,需要的朋友們下面隨著小編來一起學習學習吧2021-07-07

