解决dependency ‘org.springframework.boot:spring-boot-configuration-processor:2.7.4‘ not found问题

现在pom.xml文件中添加依赖

    <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>

如果还没成功
就赋予其版本号
例如我就是这样解决

    <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
            <version>2.3.12.RELEASE</version>
        </dependency>

加上版本号,就可以了
希望能帮到你们

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据提供的引用内容,出现类似“could not find class org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication”的错误通常是由于Spring Boot版本不兼容或者缺少相关依赖所致。解决问题的方法如下: 1. 确认Spring Boot版本是否兼容。可以在pom.xml文件中检查Spring Boot的版本是否与其他依赖项兼容。如果不兼容,则需要升级或降级Spring Boot版本。 2. 确认是否缺少相关依赖。可以在pom.xml文件中检查是否缺少相关依赖。如果缺少,则需要添加相关依赖。 3. 清除Maven本地仓库。有时候Maven本地仓库中的依赖可能会损坏或者不完整,可以尝试清除Maven本地仓库并重新构建项目。 下面是一个示例pom.xml文件,其中包含了Spring Boot和相关依赖: ```xml <dependencies> <!-- Spring Boot --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- Spring Boot Actuator --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <!-- Spring Boot Test --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!-- Spring Boot Security --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <!-- Spring Boot Data JPA --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <!-- MySQL Connector --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> </dependencies> ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值