spring-boot-configuration-processor不生效问题

    技术2022-07-10  136

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

    引入spring-boot-configuration-processor理论上应该在yml上可以显示自定义的配置信息

    但是没有提示

    问题出现的版本

    <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.6.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent>

    解决方法:

    mvn clean install -Dmaven.test.skip

     

    Processed: 0.009, SQL: 12