问题描述
在Springboot进行参数绑定时,出现
解决
添加以下依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
- 当编写yml,properties配置文件,会有提示
但会出现以下错误
需要注解@Component
,讲该组件添加到容器中,才能使用容器提供的@ConfigurationProperties
- EnableConfigurationPropertise SpringBoot registered component Springenableconfigurationpropertise springboot registered auto-registering registering components auto ahb_mst_burst_incr registered component because enableconfigurationpropertise 注解component service spring springboot参数spring springboot project spring maven springboot graalvm spring native springboot2 springboot spring3 spring starter spring-boot-starter springboot常见