日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

spring boot configuration annotation processor notconfigured解決方法

作者:魚跡 更新時間: 2023-12-19 編程語言

spring boot configuration annotation processor notconfigured解決方法

  • 一、問題描述
  • 二、解決方法

一、問題描述

我在使用ConfigurationProperties注解的時候idea出現提示信息spring boot configuration annotation processor notconfigured,但是卻不影響程序的運行,如下圖所示:
在這里插入圖片描述

二、解決方法

“spring boot configuration annotation processor not configured”這個問題通常是由于構建工具沒有正確配置Annotation Processor引起的。在使用Spring Boot時,如果項目中使用@Configuration注解,而構建工具沒有正確配置Annotation Processor,就可能會遇到這個問題。

在項目的pom文件中引入spring-boot-configuration-processor依賴即可

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

原文鏈接:https://blog.csdn.net/weixin_45915647/article/details/134345071

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新