sofastack/sofa-dashboard-client

关于auto-configure的构建配置配置

Closed this issue · 0 comments

按照readme的描述本项目是支持auto-configure的使用方式,对于这种模块依赖一般需要在构建时候引入annotation processor依赖 => 参考说明

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

这样会在构建时候在jar包资源生成META-INF/spring-configuration-metadata.json

这个文件有利于IDEA的自动提示

image

另外如果properties对象按照标准的javadoc编写注释,读取metadata的时候使用者就能阅读到更好的提示

image