开发者

程序包org.springframework.boot不存在的问题解决

开发者 https://www.devze.com 2024-09-07 10:20 出处:网络 作者: 唯♧
目录程序包org.springframework.boot不存在1、检查依赖2、缓存问题3、解决方式-运行时勾选原因分析 程序包org.springframework.boot不存在
目录
  • 程序包org.springframework.boot不存在
    • 1、检查依赖
    • 2、缓存问题
    • 3、解决方式-运行时勾选
  • 原因分析 

    程序包org.springframework.boot不存在

    1、检查依赖

    首先检查pom文件判断依赖是否存在

     <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
         <version>2.4.5</version>      
    </dependency>

    2、缓存问题javascript

    有时候构建工具会缓存依赖的 Jar 包,如果缓存的 Jajsr 包已经损坏或过期,就可能导致无法正确加载。尝试清理构建工具的缓存,然后重新构建项目,以便重新下载依赖。 

    3、解决方式-运行时勾选

    程序包org.springframework.boot不存在的问题解决

    原因分析 

    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=javascript"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.bjavascriptoot不存在内容请搜索编程客栈(www.devze.com)以前的文章或继续浏览下面的相关文章希望大家以后多多支持编程客栈(www.devze.com)! 

    0

    精彩评论

    暂无评论...
    验证码 换一张
    取 消

    关注公众号