zoukankan      html  css  js  c++  java
  • [Spring Boot]Spring Boot Configuration Annotation Processor not found in classpath

    MARK

    问题:

    这个报错似乎没有对项目正常运行产生影响.具体什么原理目前还不搞明白,mark

    解决:

    官方解决方案

    添加依赖:

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

    B.3.2 Adding Additional Metadata
    Spring Boot’s configuration file handling is quite flexible, and it is often the case that properties may exist that are not bound to a @ConfigurationProperties bean. You may also need to tune some attributes of an existing key. To support such cases and let you provide custom “hints”, the annotation processor automatically merges items from META-INF/additional-spring-configuration-metadata.json into the main metadata file.

    If you refer to a property that has been detected automatically, the description, default value, and deprecation information are overridden, if specified. If the manual property declaration is not identified in the current module, it is added as a new property.

    The format of the additional-spring-configuration-metadata.json file is exactly the same as the regular spring-configuration-metadata.json. The additional properties file is optional. If you do not have any additional properties, do not add the file.

  • 相关阅读:
    电梯调度算法---结对项目小进展
    程序的单元测试—软件工程课上所获得的感悟
    软件工程之个人项目--词频统计
    c语言中文件的读写函数
    9、访问或添加属性
    5、AOP例子(切面,通知,切入点)
    6、AOP相关概念
    4、SSH集成笔记
    3、整合SSH遇到的问题
    1、各个包的作用
  • 原文地址:https://www.cnblogs.com/DiZhang/p/12544834.html
Copyright © 2011-2022 走看看