0
是否spring-boot-configuration-processor
进程注释bean方法? 因为在我的情况下,它没有。Spring引导配置处理器进程注释bean方法吗?
这里是我的代码:
@Data
public class DatasourceConnectionPoolProperties {
private Integer initialSize;
private Integer maxIdle;
private Integer minIdle;
private Integer timeBetweenEvictionRunsMillis;
private Integer minEvictableIdleTimeMillis;
private Boolean testOnBorrow;
private String validationQuery;
}
而且某处@配置注解类:
@Bean
@ConfigurationProperties("persistence.pool")
protected DatasourceConnectionPoolProperties localPoolProperties() {
return new DatasourceConnectionPoolProperties();
}
在编译过程中,不会产生元数据。但是,当DatasourceConnectionPoolProperties
获取注释与@ConfigurationProperties
元数据生成。
我在某个地方犯了错,还是只是spring-boot-configuration-processor
的限制?
你的方法必须是'public' –