spring-projects / spring-boot

Spring Boot
https://spring.io/projects/spring-boot
Apache License 2.0
74.88k stars 40.61k forks source link

Allow metadata hint values to be contributed by multiple components #18408

Open snicoll opened 5 years ago

snicoll commented 5 years ago

While reviewing #18363 we concluded that endpoint values could be contributed from multiple different components and offering auto-completion only for the core components could be misleading.

We should improve the meta-data format to be able to:

Given that the annotation processor has already some logic for actuator endpoint, we could generate the latter automatically but it is an interesting concept for other use cases too.

snicoll commented 4 years ago

We've discussed the possibility to add an extra attribute to hint to indicate what should happen when multiple entries are to be found for the same key. There are probably other use cases where a single key could be contributed by more than one resource so we need to consider all use cases before introducing that change.